mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
Update serialization to BYTE from WORD for older save games.
This commit is contained in:
parent
b09a81126f
commit
6478b98eea
1 changed files with 6 additions and 0 deletions
|
@ -3043,6 +3043,12 @@ void player_t::Serialize (FArchive &arc)
|
|||
WeaponState = ((cheats >> 14) & 1) | ((cheats & (0x37 << 24)) >> (24 - 1));
|
||||
cheats &= ~((1 << 14) | (0x37 << 24));
|
||||
}
|
||||
if (SaveVersion < 4526)
|
||||
{
|
||||
BYTE oldWeaponState;
|
||||
arc << oldWeaponState;
|
||||
WeaponState = oldWeaponState;
|
||||
}
|
||||
else
|
||||
{
|
||||
arc << WeaponState;
|
||||
|
|
Loading…
Reference in a new issue