From 50aaf0440512bf9b30f2444fca72deb89b26d8a0 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Thu, 6 Aug 2015 16:11:49 +0200 Subject: [PATCH] Don't rotate autosaves if not needed --- src/object/robotmain.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp index 78b21e98..852f399c 100644 --- a/src/object/robotmain.cpp +++ b/src/object/robotmain.cpp @@ -5976,6 +5976,8 @@ void CRobotMain::StartMissionTimer() void CRobotMain::SetAutosave(bool enable) { + if (m_autosave == enable) return; + m_autosave = enable; m_autosaveLast = m_gameTimeAbsolute; AutosaveRotate(false); @@ -5988,6 +5990,8 @@ bool CRobotMain::GetAutosave() void CRobotMain::SetAutosaveInterval(int interval) { + if (m_autosaveInterval == interval) return; + m_autosaveInterval = interval; m_autosaveLast = m_gameTimeAbsolute; } @@ -5999,6 +6003,8 @@ int CRobotMain::GetAutosaveInterval() void CRobotMain::SetAutosaveSlots(int slots) { + if (m_autosaveSlots == slots) return; + m_autosaveSlots = slots; AutosaveRotate(false); }