diff options
author | Mattes D <github@xoft.cz> | 2014-05-23 12:33:30 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-05-23 12:33:30 +0200 |
commit | 941cb88ae456f0d8b91f6b5dc835c2536eef15f6 (patch) | |
tree | 9106277807ade54c7163ff227a7cd525d354b543 /src | |
parent | Fixed profiling flags for MSVC. (diff) | |
download | cuberite-941cb88ae456f0d8b91f6b5dc835c2536eef15f6.tar cuberite-941cb88ae456f0d8b91f6b5dc835c2536eef15f6.tar.gz cuberite-941cb88ae456f0d8b91f6b5dc835c2536eef15f6.tar.bz2 cuberite-941cb88ae456f0d8b91f6b5dc835c2536eef15f6.tar.lz cuberite-941cb88ae456f0d8b91f6b5dc835c2536eef15f6.tar.xz cuberite-941cb88ae456f0d8b91f6b5dc835c2536eef15f6.tar.zst cuberite-941cb88ae456f0d8b91f6b5dc835c2536eef15f6.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 15f456332..2567b7adc 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 ( (((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)) || |