mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 23:32:04 +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));
|
WeaponState = ((cheats >> 14) & 1) | ((cheats & (0x37 << 24)) >> (24 - 1));
|
||||||
cheats &= ~((1 << 14) | (0x37 << 24));
|
cheats &= ~((1 << 14) | (0x37 << 24));
|
||||||
}
|
}
|
||||||
|
if (SaveVersion < 4526)
|
||||||
|
{
|
||||||
|
BYTE oldWeaponState;
|
||||||
|
arc << oldWeaponState;
|
||||||
|
WeaponState = oldWeaponState;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
arc << WeaponState;
|
arc << WeaponState;
|
||||||
|
|
Loading…
Reference in a new issue