- changed Buddha powerup from a flag to an inventory check

This commit is contained in:
Rachael Alexanderson 2017-05-16 01:44:38 -04:00 committed by Christoph Oelckers
commit fe023b5ca4
3 changed files with 5 additions and 3 deletions

View file

@ -2873,7 +2873,7 @@ FUNC(LS_SetPlayerProperty)
// Add or remove a power
if (arg2 >= PROP_INVULNERABILITY && arg2 <= PROP_SPEED)
{
static ENamedName powers[13] =
static ENamedName powers[14] =
{
NAME_PowerInvulnerable,
NAME_PowerStrength,
@ -2887,7 +2887,8 @@ FUNC(LS_SetPlayerProperty)
NAME_None,
NAME_PowerSpeed,
NAME_PowerInfiniteAmmo,
NAME_PowerDoubleFiringSpeed
NAME_PowerDoubleFiringSpeed,
NAME_PowerBuddha
};
int power = arg2 - PROP_INVULNERABILITY;