Add const qualifiers

This commit is contained in:
Kawe Mazidjatari 2022-05-07 12:28:58 +02:00
parent 3e2a9db168
commit 6b13c4454a
2 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ void CEngineClient::SetRestrictServerCommands(bool bRestricted)
// Input : // Input :
// Output : bool // Output : bool
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
bool CEngineClient::GetRestrictServerCommands() bool CEngineClient::GetRestrictServerCommands() const
{ {
return *m_bRestrictServerCommands; return *m_bRestrictServerCommands;
} }
@ -47,7 +47,7 @@ void CEngineClient::SetRestrictClientCommands(bool bRestricted)
// Input : // Input :
// Output : bool // Output : bool
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
bool CEngineClient::GetRestrictClientCommands() bool CEngineClient::GetRestrictClientCommands() const
{ {
return *m_bRestrictClientCommands; return *m_bRestrictClientCommands;
} }

View File

@ -4,9 +4,9 @@ class CEngineClient
{ {
public: public:
void SetRestrictServerCommands(bool bRestrict); void SetRestrictServerCommands(bool bRestrict);
bool GetRestrictServerCommands(); bool GetRestrictServerCommands() const;
void SetRestrictClientCommands(bool bRestrict); void SetRestrictClientCommands(bool bRestrict);
bool GetRestrictClientCommands(); bool GetRestrictClientCommands() const;
void* GetLocalPlayer(); // Is actually C_Player. void* GetLocalPlayer(); // Is actually C_Player.
}; };