summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.cpp
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-03-07 12:56:02 +0100
committerGitHub <noreply@github.com>2020-03-07 12:56:02 +0100
commit5a2163d7e6ffa0c5c568be41257fb726d452b3b9 (patch)
tree2ac35cb27db2216ff0f4a0874f0ad40f27b6a334 /src/Entities/Entity.cpp
parentAttached entities can't enter portals (#4484) (diff)
downloadcuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.tar
cuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.tar.gz
cuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.tar.bz2
cuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.tar.lz
cuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.tar.xz
cuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.tar.zst
cuberite-5a2163d7e6ffa0c5c568be41257fb726d452b3b9.zip
Diffstat (limited to 'src/Entities/Entity.cpp')
-rw-r--r--src/Entities/Entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index 983cc96be..206e6af60 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -44,6 +44,7 @@ cEntity::cEntity(eEntityType a_EntityType, Vector3d a_Pos, double a_Width, doubl
m_bOnGround(false),
m_Gravity(-9.81f),
m_AirDrag(0.02f),
+ m_LastSentPosition(a_Pos),
m_LastPosition(a_Pos),
m_EntityType(a_EntityType),
m_World(nullptr),
@@ -65,7 +66,6 @@ cEntity::cEntity(eEntityType a_EntityType, Vector3d a_Pos, double a_Width, doubl
m_HeadYaw(0.0),
m_Rot(0.0, 0.0, 0.0),
m_Position(a_Pos),
- m_LastSentPosition(a_Pos),
m_WaterSpeed(0, 0, 0),
m_Mass (0.001), // Default 1g
m_Width(a_Width),