- Restored savegame compatibility that was removed in r3427.
SVN r3435 (trunk)
This commit is contained in:
parent
c05345668c
commit
58f7e72d1b
8 changed files with 128 additions and 34 deletions
|
|
@ -44,6 +44,26 @@ void DLightningThinker::Serialize (FArchive &arc)
|
|||
|
||||
arc << Stopped << NextLightningFlash << LightningFlashCount;
|
||||
|
||||
if (SaveVersion < 3243)
|
||||
{
|
||||
// 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;
|
||||
}
|
||||
|
||||
if (arc.IsLoading ())
|
||||
{
|
||||
if (LightningLightLevels != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue