- use a separate counter from AActor::special1 to count weapon use with some Hexen weapons. special1 is used for some other purposes as well, and when using a separate counter it can be reset to 0 when changing weapons, preventing counting errors.
This commit is contained in:
parent
f9741f1047
commit
ee6e87d94b
9 changed files with 22 additions and 16 deletions
|
|
@ -211,6 +211,7 @@ void P_BringUpWeapon (player_t *player)
|
|||
// make sure that the previous weapon's flash state is terminated.
|
||||
// When coming here from a weapon drop it may still be active.
|
||||
P_SetPsprite(player, ps_flash, NULL);
|
||||
player->mo->weaponspecial = 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue