- fixed: The compatibility savegame handling for the lightning code did not read the obsolete LightningLightLevels data from the savegame.

SVN r3244 (trunk)
This commit is contained in:
Christoph Oelckers 2011-06-21 07:28:48 +00:00
parent 2dd4ea8400
commit 6748432014

View file

@ -43,7 +43,22 @@ void DLightningThinker::Serialize (FArchive &arc)
arc << Stopped << NextLightningFlash << LightningFlashCount; arc << Stopped << NextLightningFlash << LightningFlashCount;
if (SaveVersion < 3243) if (SaveVersion < 3243)
{ // Do nothing with old savegames and just keep whatever the constructor made. {
// Do nothing with old savegames and just keep whatever the constructor made
// but read the obsolete data from the savegame
for (i = (numsectors + (numsectors+7)/8); i > 0; --i)
{
if (SaveVersion < 3223)
{
BYTE bytelight;
arc << bytelight;
}
else
{
short shortlight;
arc << shortlight;
}
}
return; return;
} }