Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Style fix, use CTimeStep
  • Loading branch information
whampson committed Mar 13, 2020
1 parent 8280dda commit 3862cda2318ead796544b70549176588e4917d91
Showing with 6 additions and 4 deletions.
  1. +6 −4 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);

0 comments on commit 3862cda

Please sign in to comment.