Change Next/Previous Weapon button handling for Shadow Warrior.

- Makes consistent with Duke 3D, RR and Blood.
This commit is contained in:
Mitchell Richters 2020-03-24 07:11:48 +11:00 committed by Christoph Oelckers
parent d80a32d379
commit 91cc97ced0

View file

@ -3190,7 +3190,7 @@ getinput(SW_PACKET *loc, SWBOOL tied)
} }
} }
if (buttonMap.ButtonDown(gamefunc_Next_Weapon)) if (buttonMap.ButtonPressed(gamefunc_Next_Weapon))
{ {
USERp u = User[pp->PlayerSprite]; USERp u = User[pp->PlayerSprite];
short next_weapon = u->WeaponNum + 1; short next_weapon = u->WeaponNum + 1;
@ -3230,7 +3230,7 @@ getinput(SW_PACKET *loc, SWBOOL tied)
} }
if (buttonMap.ButtonDown(gamefunc_Previous_Weapon)) if (buttonMap.ButtonPressed(gamefunc_Previous_Weapon))
{ {
USERp u = User[pp->PlayerSprite]; USERp u = User[pp->PlayerSprite];
short prev_weapon = u->WeaponNum - 1; short prev_weapon = u->WeaponNum - 1;