summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.h
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-09-04 01:12:43 +0200
committerarchshift <admin@archshift.com>2014-09-04 01:12:43 +0200
commit472efa8174626a00ffdf5b39e1a44ac419cd3698 (patch)
treebd4a6bf77cf92aaa2529ead260cda91455e9ad09 /src/Entities/Entity.h
parentChunkGenerator: Log world seed when creating a new one. (diff)
downloadcuberite-472efa8174626a00ffdf5b39e1a44ac419cd3698.tar
cuberite-472efa8174626a00ffdf5b39e1a44ac419cd3698.tar.gz
cuberite-472efa8174626a00ffdf5b39e1a44ac419cd3698.tar.bz2
cuberite-472efa8174626a00ffdf5b39e1a44ac419cd3698.tar.lz
cuberite-472efa8174626a00ffdf5b39e1a44ac419cd3698.tar.xz
cuberite-472efa8174626a00ffdf5b39e1a44ac419cd3698.tar.zst
cuberite-472efa8174626a00ffdf5b39e1a44ac419cd3698.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Entity.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h
index b9c280b6b..73e8a0d8b 100644
--- a/src/Entities/Entity.h
+++ b/src/Entities/Entity.h
@@ -27,9 +27,9 @@
return super::GetClass(); \
}
-#define POSX_TOINT (int)floor(GetPosX())
-#define POSY_TOINT (int)floor(GetPosY())
-#define POSZ_TOINT (int)floor(GetPosZ())
+#define POSX_TOINT FloorD(GetPosX())
+#define POSY_TOINT FloorD(GetPosY())
+#define POSZ_TOINT FloorD(GetPosZ())
#define POS_TOINT Vector3i(POSXTOINT, POSYTOINT, POSZTOINT)
#define GET_AND_VERIFY_CURRENT_CHUNK(ChunkVarName, X, Z) cChunk * ChunkVarName = a_Chunk.GetNeighborChunk(X, Z); if ((ChunkVarName == NULL) || !ChunkVarName->IsValid()) { return; }