- make autosaving happen immediately for other games than Blood only.

Blood does not like it, but for the others it should be ok.
This commit is contained in:
Christoph Oelckers 2023-05-15 18:32:07 +02:00
parent 3f9f1be3a8
commit 11ba136df1
5 changed files with 3 additions and 6 deletions

View file

@ -205,6 +205,7 @@ static void GameTicker()
gameaction = ga_level;
gi->NextLevel(g_nextmap, g_nextskill);
ResetStatusBar();
if (!isBlood()) M_Autosave();
break;
case ga_newgame:

View file

@ -105,7 +105,6 @@ void GameInterface::Ticker()
r_NoInterpolate = false;
PlayClock+= 4; // This must be at the end of this block so that the first tic receives a value of 0!
if (PlayClock == 8) gameaction = ga_autosave; // let the game run for 1 frame before saving.
}
else r_NoInterpolate = true;

View file

@ -334,7 +334,6 @@ void GameInterface::Ticker()
GameMove();
PlayClock += 4;
if (PlayClock == 8) gameaction = ga_autosave; // let the game run for 1 frame before saving.
r_NoInterpolate = false;
}
else
@ -515,7 +514,7 @@ void EraseScreen(int nVal)
bool GameInterface::CanSave()
{
return gamestate == GS_LEVEL && !bRecord && !bPlayback && !bInDemo && nTotalPlayers == 1 && nFreeze == 0;
return !bRecord && !bPlayback && !bInDemo && nTotalPlayers == 1 && nFreeze == 0;
}
::GameStats GameInterface::getStats()

View file

@ -86,7 +86,7 @@ void GameInterface::MenuSound(EMenuSounds snd)
bool GameInterface::CanSave()
{
return (gamestate == GS_LEVEL && !CommEnabled && numplayers ==1 && /*!DemoMode &&*/ !(Player[myconnectindex].Flags & PF_DEAD));
return (!CommEnabled && numplayers ==1 && /*!DemoMode &&*/ !(Player[myconnectindex].Flags & PF_DEAD));
}
//---------------------------------------------------------------------------

View file

@ -6892,8 +6892,6 @@ void domovethings(void)
return;
}
if (PlayClock == synctics) gameaction = ga_autosave; // let the game run for 1 frame before saving.
thinktime.Reset();
thinktime.Clock();