mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-05 05:10:55 +00:00
- Blood: Only clear global state before reading a savegame.
Doing it before writing permanently trashes it.
This commit is contained in:
parent
7143f62cb1
commit
f2f095c469
1 changed files with 4 additions and 5 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue