Merge branch 'fix-double-bombs' into awful-mix

This commit is contained in:
Latapostrophe 2020-03-22 13:09:06 +01:00
commit 732eb4cafa

View file

@ -4022,9 +4022,6 @@ static inline boolean PIT_MineExplode(mobj_t *thing)
if (G_BattleGametype() && grenade->target && grenade->target->player && grenade->target->player->kartstuff[k_bumper] <= 0 && thing == grenade->target) if (G_BattleGametype() && grenade->target && grenade->target->player && grenade->target->player->kartstuff[k_bumper] <= 0 && thing == grenade->target)
return true; return true;
if (thing->player && thing->player->powers[pw_flashing] == K_GetKartFlashing(thing->player)) // we literally got bombed that frame
return true;
// see if it went over / under // see if it went over / under
if (grenade->z - explodedist > thing->z + thing->height) if (grenade->z - explodedist > thing->z + thing->height)
return true; // overhead return true; // overhead