mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 12:04:38 -04:00
P_SetPsprite: check for readyweapon
's upstate (#1157)
* P_SetPsprite: heck for any weapon's upstate or downstate * limit number of choices * check for readyweapon's upstate
This commit is contained in:
parent
b5263a3619
commit
3229e9e4ff
@ -80,9 +80,11 @@ static void P_SetPsprite(player_t *player, int position, statenum_t stnum)
|
|||||||
|
|
||||||
if (position == ps_weapon)
|
if (position == ps_weapon)
|
||||||
{
|
{
|
||||||
if (stnum == weaponinfo[player->pendingweapon].upstate)
|
const weaponinfo_t wp = weaponinfo[player->readyweapon];
|
||||||
|
|
||||||
|
if (stnum == wp.upstate)
|
||||||
player->switching = weapswitch_raising;
|
player->switching = weapswitch_raising;
|
||||||
else if (stnum == weaponinfo[player->readyweapon].downstate)
|
else if (stnum == wp.downstate)
|
||||||
player->switching = weapswitch_lowering;
|
player->switching = weapswitch_lowering;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user