don't autosave during replay
This commit is contained in:
parent
083a52fe65
commit
ab03f5ae1d
2 changed files with 3 additions and 1 deletions
src
|
@ -79,6 +79,8 @@ extern void SaveReplayList(CFile &file);
|
|||
/// Register ccl functions related to network
|
||||
extern void ReplayCclRegister();
|
||||
|
||||
extern bool IsReplayGame();
|
||||
|
||||
//@}
|
||||
|
||||
#endif // !__REPLAY_H__
|
||||
|
|
|
@ -307,7 +307,7 @@ static void GameLogicLoop()
|
|||
}
|
||||
}
|
||||
|
||||
if (Preference.AutosaveMinutes != 0 && !IsNetworkGame() && GameCycle > 0 && (GameCycle % (CYCLES_PER_SECOND * 60 * Preference.AutosaveMinutes)) == 0) { // autosave every X minutes (default is 5), if the option is enabled
|
||||
if (Preference.AutosaveMinutes != 0 && !IsNetworkGame() && !IsReplayGame() && GameCycle > 0 && (GameCycle % (CYCLES_PER_SECOND * 60 * Preference.AutosaveMinutes)) == 0) { // autosave every X minutes (default is 5), if the option is enabled
|
||||
//Wyrmgus end
|
||||
UI.StatusLine.Set(_("Autosave"));
|
||||
SaveGame("autosave.sav");
|
||||
|
|
Loading…
Add table
Reference in a new issue