mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-12 23:54:37 +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()
|
static void GameTicker()
|
||||||
{
|
{
|
||||||
|
@ -171,6 +172,7 @@ static void GameTicker()
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ga_newgame:
|
case ga_newgame:
|
||||||
|
newGameStarted = true;
|
||||||
FX_StopAllSounds();
|
FX_StopAllSounds();
|
||||||
FX_SetReverb(0);
|
FX_SetReverb(0);
|
||||||
gi->FreeLevelData();
|
gi->FreeLevelData();
|
||||||
|
@ -210,7 +212,8 @@ static void GameTicker()
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ga_autosave:
|
case ga_autosave:
|
||||||
if (gamestate == GS_LEVEL) M_Autosave();
|
if (gamestate == GS_LEVEL && !newGameStarted) M_Autosave();
|
||||||
|
newGameStarted = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ga_level:
|
case ga_level:
|
||||||
|
|
|
@ -954,7 +954,7 @@ public:
|
||||||
{
|
{
|
||||||
DrawStatus();
|
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