summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2017-05-20 08:16:28 +0200
committerLukas Pioch <lukas@zgow.de>2017-05-21 12:19:06 +0200
commite35ac1bfb9b63bf1e49dafdcce2033ff42d7c205 (patch)
treebbd086b1dbf8545575ce5da9ac3b2b7128e19899 /src/Entities/Player.cpp
parentFixed invisible chests (#3722) (diff)
downloadcuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.tar
cuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.tar.gz
cuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.tar.bz2
cuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.tar.lz
cuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.tar.xz
cuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.tar.zst
cuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 7fa17f0f5..94398c258 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -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);