summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2014-05-19 14:31:19 +0200
committerAlexander Harkness <bearbin@gmail.com>2014-05-19 14:31:19 +0200
commit6de0257bbe1f0c676e9cc1401298f08b96b54e73 (patch)
tree13f38f43cd00625bb5dc3a7569cf46275dd8fc9b /src/Entities
parentShould have fixed assumptions about entity width. (diff)
downloadcuberite-6de0257bbe1f0c676e9cc1401298f08b96b54e73.tar
cuberite-6de0257bbe1f0c676e9cc1401298f08b96b54e73.tar.gz
cuberite-6de0257bbe1f0c676e9cc1401298f08b96b54e73.tar.bz2
cuberite-6de0257bbe1f0c676e9cc1401298f08b96b54e73.tar.lz
cuberite-6de0257bbe1f0c676e9cc1401298f08b96b54e73.tar.xz
cuberite-6de0257bbe1f0c676e9cc1401298f08b96b54e73.tar.zst
cuberite-6de0257bbe1f0c676e9cc1401298f08b96b54e73.zip
Diffstat (limited to '')
-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 71b9f63a7..aa671bf35 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -1005,7 +1005,7 @@ void cEntity::TickInVoid(cChunk & a_Chunk)
void cEntity::DetectCacti()
{
int X = POSX_TOINT, Y = POSY_TOINT, Z = POSZ_TOINT;
- float w = m_Width / 2
+ float w = m_Width / 2;
if (
(((X + 1) - GetPosX() < w) && (GetWorld()->GetBlock(X + 1, Y, Z) == E_BLOCK_CACTUS)) ||
(((GetPosX() - (X - 1)) - 1 < w) && (GetWorld()->GetBlock(X - 1, Y, Z) == E_BLOCK_CACTUS)) ||