- 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
|
|
@ -206,6 +206,10 @@ void AActor::Serialize (FArchive &arc)
|
|||
{
|
||||
arc << flags7;
|
||||
}
|
||||
if (SaveVersion >= 4511)
|
||||
{
|
||||
arc << weaponspecial;
|
||||
}
|
||||
arc << special1
|
||||
<< special2
|
||||
<< health
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue