From a02738bd2ee83347de26e7d90d309ab6e6dcd893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Tue, 14 Feb 2023 23:56:27 +0100 Subject: [PATCH] Mark `CMotd::IsActive` as `const` --- src/game/client/components/motd.cpp | 2 +- src/game/client/components/motd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;