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();
|
return IsPlaying();
|
||||||
}
|
}
|
||||||
|
|
||||||
const int64 CDemoPlayer::time()
|
int64 CDemoPlayer::time()
|
||||||
{
|
{
|
||||||
#if defined(CONF_VIDEORECORDER)
|
#if defined(CONF_VIDEORECORDER)
|
||||||
static bool s_Recording = false;
|
static bool s_Recording = false;
|
||||||
|
|
|
@ -121,7 +121,7 @@ private:
|
||||||
void ScanFile();
|
void ScanFile();
|
||||||
int NextFrame();
|
int NextFrame();
|
||||||
|
|
||||||
const int64 time();
|
int64 time();
|
||||||
|
|
||||||
int64 m_TickTime;
|
int64 m_TickTime;
|
||||||
int64 m_Time;
|
int64 m_Time;
|
||||||
|
|
|
@ -20,8 +20,8 @@ public:
|
||||||
|
|
||||||
static IVideo* Current() { return ms_pCurrentVideo; }
|
static IVideo* Current() { return ms_pCurrentVideo; }
|
||||||
|
|
||||||
static const int64 time() { return ms_Time; }
|
static int64 time() { return ms_Time; }
|
||||||
static const float LocalTime() { return ms_LocalTime; }
|
static float LocalTime() { return ms_LocalTime; }
|
||||||
static void SetLocalStartTime(int64 LocalStartTime) { ms_LocalStartTime = LocalStartTime; }
|
static void SetLocalStartTime(int64 LocalStartTime) { ms_LocalStartTime = LocalStartTime; }
|
||||||
static void SetFPS(int fps) { ms_TickTime = time_freq() / fps; }
|
static void SetFPS(int fps) { ms_TickTime = time_freq() / fps; }
|
||||||
|
|
||||||
|
|
|
@ -35,11 +35,11 @@ protected:
|
||||||
class IUpdater *Updater() const { return m_pClient->Updater(); }
|
class IUpdater *Updater() const { return m_pClient->Updater(); }
|
||||||
|
|
||||||
#if defined(CONF_VIDEORECORDER)
|
#if defined(CONF_VIDEORECORDER)
|
||||||
const int64 time() const { return IVideo::Current() ? IVideo::time() : time_get(); }
|
int64 time() const { return IVideo::Current() ? IVideo::time() : time_get(); }
|
||||||
const float LocalTime() const { return IVideo::Current() ? IVideo::LocalTime() : Client()->LocalTime(); }
|
float LocalTime() const { return IVideo::Current() ? IVideo::LocalTime() : Client()->LocalTime(); }
|
||||||
#else
|
#else
|
||||||
const int64 time() const { return time_get(); }
|
int64 time() const { return time_get(); }
|
||||||
const float LocalTime() const { return Client()->LocalTime(); }
|
float LocalTime() const { return Client()->LocalTime(); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue