* Updated to ZDoom r3435:

- Restored savegame compatibility that was removed in r3427.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1312 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
gez 2012-03-13 13:57:48 +00:00
parent 0d5aeb10a6
commit 0b513a0098
9 changed files with 130 additions and 36 deletions

View file

@ -2613,8 +2613,18 @@ void player_t::Serialize (FArchive &arc)
<< BlendR
<< BlendG
<< BlendB
<< BlendA
<< LogText
<< BlendA;
if (SaveVersion < 3427)
{
WORD oldaccuracy, oldstamina;
arc << oldaccuracy << oldstamina;
if (mo != NULL)
{
mo->accuracy = oldaccuracy;
mo->stamina = oldstamina;
}
}
arc << LogText
<< ConversationNPC
<< ConversationPC
<< ConversationNPCAngle