diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-05-25 00:21:39 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-05-25 00:21:39 +0200 |
commit | f55f5ec47f67dcc31e56bc364297aaf60d75b0c3 (patch) | |
tree | 62262220c9342b0eab368f553a836d736a39d972 /src/Entities/Entity.cpp | |
parent | Update CompositeChat.h (diff) | |
parent | Update README.md (diff) | |
download | cuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.tar cuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.tar.gz cuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.tar.bz2 cuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.tar.lz cuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.tar.xz cuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.tar.zst cuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index 8a584d2ca..1226a2319 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -1018,10 +1018,10 @@ void cEntity::TickInVoid(cChunk & a_Chunk) -void cEntity::DetectCacti() +void cEntity::DetectCacti(void) { int X = POSX_TOINT, Y = POSY_TOINT, Z = POSZ_TOINT; - float w = m_Width / 2; + double w = m_Width / 2; if ( ((Y > 0) && (Y < cChunkDef::Height)) && ((((X + 1) - GetPosX() < w) && (GetWorld()->GetBlock(X + 1, Y, Z) == E_BLOCK_CACTUS)) || |