- don't autosave just after starting a new game.

This commit is contained in:
Christoph Oelckers 2020-09-08 23:00:31 +02:00
parent f15657cc6d
commit 2fc058e487
2 changed files with 5 additions and 2 deletions

View file

@ -121,6 +121,7 @@ void G_BuildTiccmd(ticcmd_t* cmd)
//
//
//==========================================================================
bool newGameStarted;
static void GameTicker()
{
@ -171,6 +172,7 @@ static void GameTicker()
break;
case ga_newgame:
newGameStarted = true;
FX_StopAllSounds();
FX_SetReverb(0);
gi->FreeLevelData();
@ -210,7 +212,8 @@ static void GameTicker()
break;
case ga_autosave:
if (gamestate == GS_LEVEL) M_Autosave();
if (gamestate == GS_LEVEL && !newGameStarted) M_Autosave();
newGameStarted = false;
break;
case ga_level:

View file

@ -954,7 +954,7 @@ public:
{
DrawStatus();
}
PrintLevelStats(hud_size == Hud_Nothing ? 0 : 40);
PrintLevelStats(hud_size == Hud_Nothing ? 0 : hud_size == Hud_full? 22 : 40);
}
};