Update to ZDoom r1893:

- fixed: Savegames stored the global fixed light levels when saving a player.



git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@515 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
Christoph Oelckers 2009-10-03 08:35:53 +00:00
parent e00332c1f7
commit 2a14e24d23
3 changed files with 27 additions and 5 deletions

View file

@ -2514,19 +2514,25 @@ void player_t::Serialize (FArchive &arc)
int fixedmap;
arc << fixedmap;
fixedcolormap = NOFIXEDCOLORMAP;
fixedlightlev = -1;
fixedlightlevel = -1;
if (fixedmap >= NUMCOLORMAPS)
{
fixedcolormap = fixedmap - NUMCOLORMAPS;
}
else if (fixedmap > 0)
{
fixedlightlev = fixedmap;
fixedlightlevel = fixedmap;
}
}
else if (SaveVersion < 1893)
{
int ll;
arc << fixedcolormap << ll;
fixedlightlevel = ll;
}
else
{
arc << fixedcolormap << fixedlightlev;
arc << fixedcolormap << fixedlightlevel;
}
arc << morphTics
<< MorphedPlayerClass