mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 22:18:19 +00:00
Rename method CDemoPlayer::time
to Time
This commit is contained in:
parent
64f326d626
commit
6f101f54af
|
@ -885,7 +885,7 @@ bool CDemoPlayer::ExtractMap(class IStorage *pStorage)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t CDemoPlayer::time()
|
int64_t CDemoPlayer::Time()
|
||||||
{
|
{
|
||||||
#if defined(CONF_VIDEORECORDER)
|
#if defined(CONF_VIDEORECORDER)
|
||||||
static bool s_Recording = false;
|
static bool s_Recording = false;
|
||||||
|
@ -921,7 +921,7 @@ int CDemoPlayer::Play()
|
||||||
|
|
||||||
// set start info
|
// set start info
|
||||||
m_Info.m_CurrentTime = m_Info.m_PreviousTick * time_freq() / SERVER_TICK_SPEED;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -985,7 +985,7 @@ void CDemoPlayer::SetSpeedIndex(int Offset)
|
||||||
|
|
||||||
int CDemoPlayer::Update(bool RealTime)
|
int CDemoPlayer::Update(bool RealTime)
|
||||||
{
|
{
|
||||||
int64_t Now = time();
|
int64_t Now = Time();
|
||||||
int64_t Deltatime = Now - m_Info.m_LastUpdate;
|
int64_t Deltatime = Now - m_Info.m_LastUpdate;
|
||||||
m_Info.m_LastUpdate = Now;
|
m_Info.m_LastUpdate = Now;
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ private:
|
||||||
void DoTick();
|
void DoTick();
|
||||||
void ScanFile();
|
void ScanFile();
|
||||||
|
|
||||||
int64_t time();
|
int64_t Time();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CDemoPlayer(class CSnapshotDelta *pSnapshotDelta);
|
CDemoPlayer(class CSnapshotDelta *pSnapshotDelta);
|
||||||
|
|
Loading…
Reference in a new issue