mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- don't autosave just after starting a new game.
This commit is contained in:
parent
f15657cc6d
commit
2fc058e487
2 changed files with 5 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue