mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 00:21:43 +00:00
- 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:
parent
2dd4ea8400
commit
6748432014
1 changed files with 16 additions and 1 deletions
|
@ -43,7 +43,22 @@ void DLightningThinker::Serialize (FArchive &arc)
|
|||
arc << Stopped << NextLightningFlash << LightningFlashCount;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue