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

SVN r1893 (trunk)
This commit is contained in:
Christoph Oelckers 2009-10-02 09:21:37 +00:00
commit 4add2809a3
3 changed files with 13 additions and 4 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