From 6f101f54af815749ae24c855d4e9abcddc8580c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Sat, 27 Aug 2022 11:47:10 +0200 Subject: [PATCH] Rename method `CDemoPlayer::time` to `Time` --- src/engine/shared/demo.cpp | 6 +++--- src/engine/shared/demo.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/shared/demo.cpp b/src/engine/shared/demo.cpp index 88c96d502..45027cb1b 100644 --- a/src/engine/shared/demo.cpp +++ b/src/engine/shared/demo.cpp @@ -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; diff --git a/src/engine/shared/demo.h b/src/engine/shared/demo.h index 94bf10358..9adb7064c 100644 --- a/src/engine/shared/demo.h +++ b/src/engine/shared/demo.h @@ -118,7 +118,7 @@ private: void DoTick(); void ScanFile(); - int64_t time(); + int64_t Time(); public: CDemoPlayer(class CSnapshotDelta *pSnapshotDelta);