- actor clearing cleaned up.

We still need this until we can get rid of the static arrays...
This commit is contained in:
Christoph Oelckers 2021-12-05 10:40:31 +01:00
parent c4d23188d5
commit 8a2385dd89
17 changed files with 36 additions and 30 deletions

View file

@ -736,12 +736,13 @@ static int nextquicksave = -1;
void DoLoadGame(const char* name)
{
gi->FreeLevelData();
if (ReadSavegame(name))
{
gameaction = ga_level;
}
else
{
gameaction = ga_level;
}
else
{
I_Error("%s: Failed to open savegame", name);
}
}
@ -765,7 +766,6 @@ static int nextquicksave = -1;
}
inputState.ClearAllInput();
gi->FreeLevelData();
DoLoadGame(savename);
BackupSaveGame = savename;
}