mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-05 13:20:56 +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)
|
void GameInterface::SerializeGameState(FSerializer& arc)
|
||||||
{
|
{
|
||||||
sndKillAllSounds();
|
|
||||||
sfxKillAllSounds();
|
|
||||||
ambKillAll();
|
|
||||||
seqKillAll();
|
|
||||||
|
|
||||||
if (arc.isWriting())
|
if (arc.isWriting())
|
||||||
{
|
{
|
||||||
activeXSprites.Zero();
|
activeXSprites.Zero();
|
||||||
|
@ -679,6 +674,10 @@ void GameInterface::SerializeGameState(FSerializer& arc)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
sndKillAllSounds();
|
||||||
|
sfxKillAllSounds();
|
||||||
|
ambKillAll();
|
||||||
|
seqKillAll();
|
||||||
if (gamestate != GS_LEVEL)
|
if (gamestate != GS_LEVEL)
|
||||||
{
|
{
|
||||||
memset(xsprite, 0, sizeof(xsprite));
|
memset(xsprite, 0, sizeof(xsprite));
|
||||||
|
|
Loading…
Reference in a new issue