mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 07:01:09 +00:00
- Consolidate two gi->FreeLevelData()
into NewGame()
.
This commit is contained in:
parent
32480dde16
commit
ae192df7b7
1 changed files with 1 additions and 2 deletions
|
@ -150,6 +150,7 @@ bool newGameStarted;
|
|||
|
||||
void NewGame(MapRecord* map, int skill, bool ns = false)
|
||||
{
|
||||
gi->FreeLevelData();
|
||||
newGameStarted = true;
|
||||
ShowIntermission(nullptr, map, nullptr, [=](bool) {
|
||||
gi->NewGame(map, skill, ns);
|
||||
|
@ -188,7 +189,6 @@ static void GameTicker()
|
|||
g_nextmap = currentLevel;
|
||||
FX_StopAllSounds();
|
||||
FX_SetReverb(0);
|
||||
gi->FreeLevelData();
|
||||
NewGame(g_nextmap, -1);
|
||||
BackupSaveGame = "";
|
||||
}
|
||||
|
@ -214,7 +214,6 @@ static void GameTicker()
|
|||
case ga_newgamenostopsound:
|
||||
DeleteScreenJob();
|
||||
FX_SetReverb(0);
|
||||
gi->FreeLevelData();
|
||||
C_FlushDisplay();
|
||||
BackupSaveGame = "";
|
||||
NewGame(g_nextmap, g_nextskill, ga == ga_newgamenostopsound);
|
||||
|
|
Loading…
Reference in a new issue