- 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

@ -206,6 +206,10 @@ void AActor::Serialize (FArchive &arc)
{
arc << flags7;
}
if (SaveVersion >= 4511)
{
arc << weaponspecial;
}
arc << special1
<< special2
<< health