- Blood: Only clear global state before reading a savegame.

Doing it before writing permanently trashes it.
This commit is contained in:
Christoph Oelckers 2020-11-28 00:20:12 +01:00
parent 7143f62cb1
commit f2f095c469

View file

@ -664,11 +664,6 @@ void SerializeNNExts(FSerializer& arc);
void GameInterface::SerializeGameState(FSerializer& arc)
{
sndKillAllSounds();
sfxKillAllSounds();
ambKillAll();
seqKillAll();
if (arc.isWriting())
{
activeXSprites.Zero();
@ -679,6 +674,10 @@ void GameInterface::SerializeGameState(FSerializer& arc)
}
else
{
sndKillAllSounds();
sfxKillAllSounds();
ambKillAll();
seqKillAll();
if (gamestate != GS_LEVEL)
{
memset(xsprite, 0, sizeof(xsprite));