Fix invincibility white flash
Calls P_TeleportMove instead of A_CapeChase, object was given a dispoffset
This commit is contained in:
1 parent
8f9595b72f
commit
ff09a51915
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -14365,7 +14365,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
|
||||
8, // speed
|
||||
8*FRACUNIT, // radius
|
||||
8*FRACUNIT, // height
|
||||
0, // display offset
|
||||
1, // display offset
|
||||
100, // mass
|
||||
0, // damage
|
||||
sfx_None, // activesound
|
||||
|
||||
+2
-2
@@ -8134,12 +8134,12 @@ void P_MobjThinker(mobj_t *mobj)
|
||||
mobj->colorized = mobj->target->colorized;
|
||||
break;
|
||||
case MT_INVULNFLASH:
|
||||
if (!mobj->target || (mobj->target->player && !mobj->target->player->kartstuff[k_invincibilitytimer]))
|
||||
if (!mobj->target || !mobj->target->health || (mobj->target->player && !mobj->target->player->kartstuff[k_invincibilitytimer]))
|
||||
{
|
||||
P_RemoveMobj(mobj);
|
||||
return;
|
||||
}
|
||||
A_CapeChase(mobj);
|
||||
P_TeleportMove(mobj, mobj->target->x, mobj->target->y, mobj->target->z);
|
||||
break;
|
||||
//}
|
||||
case MT_TURRET:
|
||||
|
||||
Reference in new issue
Block a user