- removed all instances of CF_POWERBUDDHA

This commit is contained in:
Rachael Alexanderson 2017-05-16 01:57:37 -04:00 committed by Christoph Oelckers
commit c6946cc672
4 changed files with 9 additions and 5 deletions

View file

@ -2156,7 +2156,8 @@ void P_FallingDamage (AActor *actor)
{
S_Sound (actor, CHAN_AUTO, "*land", 1, ATTN_NORM);
P_NoiseAlert (actor, actor, true);
if (damage >= TELEFRAG_DAMAGE && (actor->player->cheats & (CF_GODMODE | CF_BUDDHA | CF_POWERBUDDHA )))
if (damage >= TELEFRAG_DAMAGE && ((actor->player->cheats & (CF_GODMODE | CF_BUDDHA) ||
(actor->FindInventory(PClass::FindActor(NAME_PowerBuddha), true) != nullptr))))
{
damage = 999;
}