Make const

No modification is performed.
This commit is contained in:
Kawe Mazidjatari 2022-10-29 00:01:10 +02:00
parent 9c440e1e68
commit 3eadb1ed93
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@
//------------------------------------------------------------------------------
// Purpose: returns true if client simulation is paused
//------------------------------------------------------------------------------
bool CClientState::IsPaused()
bool CClientState::IsPaused() const
{
return m_bPaused;
}
@ -26,7 +26,7 @@ bool CClientState::IsPaused()
// Purpose: gets the client time
// Technically doesn't belong here
//------------------------------------------------------------------------------
float CClientState::GetClientTime()
float CClientState::GetClientTime() const
{
if (m_bClockCorrectionEnabled)
{

View File

@ -24,8 +24,8 @@ public:
class CClientState : CS_INetChannelHandler, IConnectionlessPacketHandler, IServerMessageHandler, CClientSnapshotManager
{
public:
bool IsPaused();
float GetClientTime();
bool IsPaused() const;
float GetClientTime() const;
int GetTick() const;