mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Add const qualifiers
This commit is contained in:
parent
3e2a9db168
commit
6b13c4454a
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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.
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user