- 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:
Christoph Oelckers 2014-09-13 12:38:16 +02:00
commit ee6e87d94b
9 changed files with 22 additions and 16 deletions

View file

@ -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;
}