Don't rotate autosaves if not needed

master
krzys-h 2015-08-06 16:11:49 +02:00
parent 711643b454
commit 50aaf04405
1 changed files with 6 additions and 0 deletions

View File

@ -5976,6 +5976,8 @@ void CRobotMain::StartMissionTimer()
void CRobotMain::SetAutosave(bool enable) void CRobotMain::SetAutosave(bool enable)
{ {
if (m_autosave == enable) return;
m_autosave = enable; m_autosave = enable;
m_autosaveLast = m_gameTimeAbsolute; m_autosaveLast = m_gameTimeAbsolute;
AutosaveRotate(false); AutosaveRotate(false);
@ -5988,6 +5990,8 @@ bool CRobotMain::GetAutosave()
void CRobotMain::SetAutosaveInterval(int interval) void CRobotMain::SetAutosaveInterval(int interval)
{ {
if (m_autosaveInterval == interval) return;
m_autosaveInterval = interval; m_autosaveInterval = interval;
m_autosaveLast = m_gameTimeAbsolute; m_autosaveLast = m_gameTimeAbsolute;
} }
@ -5999,6 +6003,8 @@ int CRobotMain::GetAutosaveInterval()
void CRobotMain::SetAutosaveSlots(int slots) void CRobotMain::SetAutosaveSlots(int slots)
{ {
if (m_autosaveSlots == slots) return;
m_autosaveSlots = slots; m_autosaveSlots = slots;
AutosaveRotate(false); AutosaveRotate(false);
} }