mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +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