Rename method CDemoPlayer::time to Time

This commit is contained in:
Robert Müller 2022-08-27 11:47:10 +02:00
parent 64f326d626
commit 6f101f54af
2 changed files with 4 additions and 4 deletions

View file

@ -885,7 +885,7 @@ bool CDemoPlayer::ExtractMap(class IStorage *pStorage)
return true;
}
int64_t CDemoPlayer::time()
int64_t CDemoPlayer::Time()
{
#if defined(CONF_VIDEORECORDER)
static bool s_Recording = false;
@ -921,7 +921,7 @@ int CDemoPlayer::Play()
// set start info
m_Info.m_CurrentTime = m_Info.m_PreviousTick * time_freq() / SERVER_TICK_SPEED;
m_Info.m_LastUpdate = time();
m_Info.m_LastUpdate = Time();
return 0;
}
@ -985,7 +985,7 @@ void CDemoPlayer::SetSpeedIndex(int Offset)
int CDemoPlayer::Update(bool RealTime)
{
int64_t Now = time();
int64_t Now = Time();
int64_t Deltatime = Now - m_Info.m_LastUpdate;
m_Info.m_LastUpdate = Now;

View file

@ -118,7 +118,7 @@ private:
void DoTick();
void ScanFile();
int64_t time();
int64_t Time();
public:
CDemoPlayer(class CSnapshotDelta *pSnapshotDelta);