- changed fall damage so it is max 'TELEFRAG_DAMAGE - 1' instead of a flat 999 (it used to check for >=1000).

This commit is contained in:
Rachael Alexanderson 2017-05-16 01:58:39 -04:00 committed by Christoph Oelckers
parent c6946cc672
commit 8192ad73bd

View file

@ -2159,7 +2159,7 @@ void P_FallingDamage (AActor *actor)
if (damage >= TELEFRAG_DAMAGE && ((actor->player->cheats & (CF_GODMODE | CF_BUDDHA) ||
(actor->FindInventory(PClass::FindActor(NAME_PowerBuddha), true) != nullptr))))
{
damage = 999;
damage = TELEFRAG_DAMAGE - 1;
}
}
P_DamageMobj (actor, NULL, NULL, damage, NAME_Falling);