- Exhumed: only run the level init code after loading a save, not after saving.

Fixes #221
This commit is contained in:
Christoph Oelckers 2020-12-10 20:25:20 +01:00
parent 6c36852ceb
commit ddd0b412ae

View file

@ -101,6 +101,9 @@ void GameInterface::SerializeGameState(FSerializer& arc)
SerializeSpider(arc);
SerializeWasp(arc);
}
if (arc.isReading())
{
// reset the sky in case it hasn't been done yet.
psky_t* pSky = tileSetupSky(DEFAULTPSKY);
pSky->tileofs[0] = 0;
@ -130,6 +133,7 @@ void GameInterface::SerializeGameState(FSerializer& arc)
}
Mus_ResumeSaved();
}
}
END_PS_NS