diff --git a/src/game/client/components/motd.cpp b/src/game/client/components/motd.cpp index b7fc8b11e..463992517 100644 --- a/src/game/client/components/motd.cpp +++ b/src/game/client/components/motd.cpp @@ -15,7 +15,7 @@ void CMotd::Clear() m_ServerMotdTime = 0; } -bool CMotd::IsActive() +bool CMotd::IsActive() const { return time() < m_ServerMotdTime; } diff --git a/src/game/client/components/motd.h b/src/game/client/components/motd.h index 1c6fb37d7..e13ffab52 100644 --- a/src/game/client/components/motd.h +++ b/src/game/client/components/motd.h @@ -15,7 +15,7 @@ public: const char *ServerMotd() const { return m_aServerMotd; } void Clear(); - bool IsActive(); + bool IsActive() const; virtual void OnRender() override; virtual void OnStateChange(int NewState, int OldState) override;