Mark CMotd::IsActive as const

This commit is contained in:
Robert Müller 2023-02-14 23:56:27 +01:00
parent 53635deb35
commit a02738bd2e
2 changed files with 2 additions and 2 deletions

View file

@ -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;
} }

View file

@ -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;