mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Mark CMotd::IsActive
as const
This commit is contained in:
parent
53635deb35
commit
a02738bd2e
|
@ -15,7 +15,7 @@ void CMotd::Clear()
|
||||||
m_ServerMotdTime = 0;
|
m_ServerMotdTime = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CMotd::IsActive()
|
bool CMotd::IsActive() const
|
||||||
{
|
{
|
||||||
return time() < m_ServerMotdTime;
|
return time() < m_ServerMotdTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ public:
|
||||||
|
|
||||||
const char *ServerMotd() const { return m_aServerMotd; }
|
const char *ServerMotd() const { return m_aServerMotd; }
|
||||||
void Clear();
|
void Clear();
|
||||||
bool IsActive();
|
bool IsActive() const;
|
||||||
|
|
||||||
virtual void OnRender() override;
|
virtual void OnRender() override;
|
||||||
virtual void OnStateChange(int NewState, int OldState) override;
|
virtual void OnStateChange(int NewState, int OldState) override;
|
||||||
|
|
Loading…
Reference in a new issue