1
0

Clang 5.0 fixes

- Added override keyword
- Removed inherited member variables
This commit is contained in:
Lukas Pioch
2017-05-20 08:16:28 +02:00
parent 758622336e
commit e35ac1bfb9
64 changed files with 64 additions and 74 deletions

View File

@@ -74,8 +74,6 @@ cPlayer::cPlayer(cClientHandlePtr a_Client, const AString & a_PlayerName) :
m_IsCrouched(false),
m_IsSprinting(false),
m_IsFlying(false),
m_IsSwimming(false),
m_IsSubmerged(false),
m_IsFishing(false),
m_CanFly(false),
m_EatingFinishTick(-1),
@@ -96,6 +94,9 @@ cPlayer::cPlayer(cClientHandlePtr a_Client, const AString & a_PlayerName) :
{
ASSERT(a_PlayerName.length() <= 16); // Otherwise this player could crash many clients...
m_IsSwimming = false;
m_IsSubmerged = false;
m_InventoryWindow = new cInventoryWindow(*this);
m_CurrentWindow = m_InventoryWindow;
m_InventoryWindow->OpenedByPlayer(*this);