mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
removed superfluous const
This commit is contained in:
parent
ef43af8709
commit
41da2f4497
|
@ -801,7 +801,7 @@ int CDemoPlayer::NextFrame()
|
|||
return IsPlaying();
|
||||
}
|
||||
|
||||
const int64 CDemoPlayer::time()
|
||||
int64 CDemoPlayer::time()
|
||||
{
|
||||
#if defined(CONF_VIDEORECORDER)
|
||||
static bool s_Recording = false;
|
||||
|
|
|
@ -121,7 +121,7 @@ private:
|
|||
void ScanFile();
|
||||
int NextFrame();
|
||||
|
||||
const int64 time();
|
||||
int64 time();
|
||||
|
||||
int64 m_TickTime;
|
||||
int64 m_Time;
|
||||
|
|
|
@ -20,8 +20,8 @@ public:
|
|||
|
||||
static IVideo* Current() { return ms_pCurrentVideo; }
|
||||
|
||||
static const int64 time() { return ms_Time; }
|
||||
static const float LocalTime() { return ms_LocalTime; }
|
||||
static int64 time() { return ms_Time; }
|
||||
static float LocalTime() { return ms_LocalTime; }
|
||||
static void SetLocalStartTime(int64 LocalStartTime) { ms_LocalStartTime = LocalStartTime; }
|
||||
static void SetFPS(int fps) { ms_TickTime = time_freq() / fps; }
|
||||
|
||||
|
|
|
@ -35,11 +35,11 @@ protected:
|
|||
class IUpdater *Updater() const { return m_pClient->Updater(); }
|
||||
|
||||
#if defined(CONF_VIDEORECORDER)
|
||||
const int64 time() const { return IVideo::Current() ? IVideo::time() : time_get(); }
|
||||
const float LocalTime() const { return IVideo::Current() ? IVideo::LocalTime() : Client()->LocalTime(); }
|
||||
int64 time() const { return IVideo::Current() ? IVideo::time() : time_get(); }
|
||||
float LocalTime() const { return IVideo::Current() ? IVideo::LocalTime() : Client()->LocalTime(); }
|
||||
#else
|
||||
const int64 time() const { return time_get(); }
|
||||
const float LocalTime() const { return Client()->LocalTime(); }
|
||||
int64 time() const { return time_get(); }
|
||||
float LocalTime() const { return Client()->LocalTime(); }
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue