summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2022-07-11 00:55:11 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2022-07-19 23:33:09 +0200
commitcd97aa83307ce33068082dc57deee8d922fec432 (patch)
tree7ea02bf81e102e80df32d527a085c3ecd3f66d44 /src/Entities/Entity.h
parentClientHandle: fix incorrect position floor (diff)
downloadcuberite-cd97aa83307ce33068082dc57deee8d922fec432.tar
cuberite-cd97aa83307ce33068082dc57deee8d922fec432.tar.gz
cuberite-cd97aa83307ce33068082dc57deee8d922fec432.tar.bz2
cuberite-cd97aa83307ce33068082dc57deee8d922fec432.tar.lz
cuberite-cd97aa83307ce33068082dc57deee8d922fec432.tar.xz
cuberite-cd97aa83307ce33068082dc57deee8d922fec432.tar.zst
cuberite-cd97aa83307ce33068082dc57deee8d922fec432.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Entity.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h
index 2f9ba229b..574918bda 100644
--- a/src/Entities/Entity.h
+++ b/src/Entities/Entity.h
@@ -208,7 +208,7 @@ public:
int GetChunkZ(void) const { return FloorC(m_Position.z / cChunkDef::Width); }
// Get the Entity's axis aligned bounding box, with absolute (world-relative) coordinates.
- cBoundingBox GetBoundingBox() const { return cBoundingBox(GetPosition(), GetWidth() / 2, GetHeight()); }
+ cBoundingBox GetBoundingBox() const { return cBoundingBox(m_Position, m_Width / 2, m_Height); }
void SetHeadYaw (double a_HeadYaw);
void SetMass (double a_Mass);