mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-27 07:51:36 +00:00
Fix infinite pain floors
If inflictor is null and you're in hitlag do not damage again
This commit is contained in:
parent
693c25310d
commit
2d34cd150d
1 changed files with 1 additions and 3 deletions
|
|
@ -1845,10 +1845,8 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
|||
if (!(target->flags & MF_SHOOTABLE))
|
||||
return false; // shouldn't happen...
|
||||
|
||||
#if 0
|
||||
if (!(damagetype & DMG_DEATHMASK) && target->hitlag > 0)
|
||||
if (!(damagetype & DMG_DEATHMASK) && target->hitlag > 0 && inflictor == NULL)
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (target->flags2 & MF2_SKULLFLY)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue