summaryrefslogtreecommitdiff
path: root/src/save
diff options
context:
space:
mode:
authorWes Hampson <thehambone93@gmail.com>2020-03-13 13:47:53 -0700
committerWes Hampson <thehambone93@gmail.com>2020-03-13 13:47:53 -0700
commit3862cda2318ead796544b70549176588e4917d91 (patch)
treed2ba0079392b2521b8cb17b0424cbd72d17f49d5 /src/save
parent8280dda9cba53608be137a7e6a82ea45aca339c4 (diff)
Style fix, use CTimeStep
Diffstat (limited to 'src/save')
-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);