Skip to content

Commit

Permalink
- Missed a few CF_POWERBUDDHA references.
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed May 16, 2017
1 parent a93efb1 commit 625fc73
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion wadsrc/static/zscript/constants.txt
Expand Up @@ -1114,7 +1114,6 @@ enum EPlayerCheats
CF_BUDDHA2 = 1 << 24, // [MC] Absolute buddha. No voodoo can kill it either.
CF_GODMODE2 = 1 << 25, // [MC] Absolute godmode. No voodoo can kill it either.
CF_BUDDHA = 1 << 27, // [SP] Buddha mode - take damage, but don't die
CF_POWERBUDDHA = 1 << 28, // [MC] Powerup version of Buddha to prevent interference with actual cheat.
CF_NOCLIP2 = 1 << 30, // [RH] More Quake-like noclip

// These flags no longer exist, but keep the names for some stray mod that might have used them.
Expand Down
20 changes: 0 additions & 20 deletions wadsrc/static/zscript/inventory/powerups.txt
Expand Up @@ -1450,26 +1450,6 @@ class PowerBuddha : Powerup
{
Powerup.Duration -60;
}

override void InitEffect ()
{
Super.InitEffect();

if (Owner== null || Owner.player == null)
return;

Owner.player.cheats |= CF_POWERBUDDHA;
}

override void EndEffect ()
{
Super.EndEffect();

if (Owner== null || Owner.player == null)
return;

Owner.player.cheats &= ~CF_POWERBUDDHA;
}
}

//===========================================================================
Expand Down

0 comments on commit 625fc73

Please sign in to comment.