Shadows remain even after an object dies, until the object no longer exists

This commit is contained in:
Sryder13 2017-10-24 20:34:44 +01:00
parent fced36e601
commit 59d670f902
1 changed files with 1 additions and 1 deletions

View File

@ -6244,7 +6244,7 @@ void P_RunShadows(void)
if (mobj->type != MT_SHADOW)
continue;
if (mobj->target && (mobj->target->health || mobj->target->player)) // only players keep shadows after death, but only until their mobj is killed
if (mobj->target)
{
if ((mobj->target->flags2 & MF2_DONTDRAW)
|| (((mobj->target->eflags & MFE_VERTICALFLIP) && mobj->target->z+mobj->target->height > mobj->target->ceilingz)