summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWes Hampson <thehambone93@gmail.com>2020-03-13 21:47:53 +0100
committerWes Hampson <thehambone93@gmail.com>2020-03-13 21:47:53 +0100
commit3862cda2318ead796544b70549176588e4917d91 (patch)
treed2ba0079392b2521b8cb17b0424cbd72d17f49d5
parentAdd CTimeStep (diff)
downloadre3-3862cda2318ead796544b70549176588e4917d91.tar
re3-3862cda2318ead796544b70549176588e4917d91.tar.gz
re3-3862cda2318ead796544b70549176588e4917d91.tar.bz2
re3-3862cda2318ead796544b70549176588e4917d91.tar.lz
re3-3862cda2318ead796544b70549176588e4917d91.tar.xz
re3-3862cda2318ead796544b70549176588e4917d91.tar.zst
re3-3862cda2318ead796544b70549176588e4917d91.zip
Diffstat (limited to '')
-rw-r--r--src/save/GenericGameStorage.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp
index 5a0df1fe..d3d1d989 100644
--- a/src/save/GenericGameStorage.cpp
+++ b/src/save/GenericGameStorage.cpp
@@ -25,6 +25,8 @@
#include "Script.h"
#include "Stats.h"
#include "Streaming.h"
+#include "Timer.h"
+#include "TimeStep.h"
#include "Weather.h"
#include "World.h"
#include "Zones.h"
@@ -93,7 +95,7 @@ INITSAVEBUF
TextCopy(saveName, lastMissionPassed);
int len = UnicodeStrlen(saveName);
saveName[len] = '\0';
- if (22 < len)
+ if (len > 22)
TextCopy(saveName + 18, suffix);
saveName[23] = '\0';
}
@@ -119,9 +121,9 @@ INITSAVEBUF
WriteSaveBuf(buf, CTimer::ms_fTimeStep);
WriteSaveBuf(buf, CTimer::ms_fTimeStepNonClipped);
WriteSaveBuf(buf, CTimer::m_FrameCounter);
- WriteSaveBuf(buf, 1.0f); // CTimeStep::ms_fTimeStep;
- WriteSaveBuf(buf, 1.0f); // CTimeStep::ms_fFramesPerUpdate;
- WriteSaveBuf(buf, 1.0f); // CTimeStep::ms_fTimeScale;
+ WriteSaveBuf(buf, CTimeStep::ms_fTimeStep);
+ WriteSaveBuf(buf, CTimeStep::ms_fFramesPerUpdate);
+ WriteSaveBuf(buf, CTimeStep::ms_fTimeScale);
WriteSaveBuf(buf, (int32) CWeather::OldWeatherType);
WriteSaveBuf(buf, (int32) CWeather::NewWeatherType);
WriteSaveBuf(buf, (int32) CWeather::ForcedWeatherType);