diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2022-07-11 00:55:11 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2022-07-19 23:33:09 +0200 |
commit | cd97aa83307ce33068082dc57deee8d922fec432 (patch) | |
tree | 7ea02bf81e102e80df32d527a085c3ecd3f66d44 /src/Entities/Entity.h | |
parent | ClientHandle: fix incorrect position floor (diff) | |
download | cuberite-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.h | 2 |
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); |