mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
Fix duplicated matchgenericflags (was causing crash)
This commit is contained in:
parent
31b3a9ac90
commit
1d62fb8eb3
1 changed files with 2 additions and 2 deletions
|
@ -8128,7 +8128,6 @@ void P_MobjThinker(mobj_t *mobj)
|
||||||
break;
|
break;
|
||||||
case MT_INSTASHIELDB:
|
case MT_INSTASHIELDB:
|
||||||
mobj->flags2 ^= MF2_DONTDRAW;
|
mobj->flags2 ^= MF2_DONTDRAW;
|
||||||
K_MatchGenericExtraFlags(mobj, mobj->target);
|
|
||||||
/* FALLTHRU */
|
/* FALLTHRU */
|
||||||
case MT_INSTASHIELDA:
|
case MT_INSTASHIELDA:
|
||||||
if (!mobj->target || !mobj->target->health || (mobj->target->player && !mobj->target->player->kartstuff[k_instashield]))
|
if (!mobj->target || !mobj->target->health || (mobj->target->player && !mobj->target->player->kartstuff[k_instashield]))
|
||||||
|
@ -8136,8 +8135,9 @@ void P_MobjThinker(mobj_t *mobj)
|
||||||
P_RemoveMobj(mobj);
|
P_RemoveMobj(mobj);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
P_TeleportMove(mobj, mobj->target->x, mobj->target->y, mobj->target->z);
|
|
||||||
K_MatchGenericExtraFlags(mobj, mobj->target);
|
K_MatchGenericExtraFlags(mobj, mobj->target);
|
||||||
|
P_TeleportMove(mobj, mobj->target->x, mobj->target->y, mobj->target->z);
|
||||||
break;
|
break;
|
||||||
case MT_BATTLEPOINT:
|
case MT_BATTLEPOINT:
|
||||||
if (!mobj->target || P_MobjWasRemoved(mobj->target))
|
if (!mobj->target || P_MobjWasRemoved(mobj->target))
|
||||||
|
|
Loading…
Reference in a new issue