diff options
author | archshift <admin@archshift.com> | 2014-09-04 01:12:43 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-09-04 01:12:43 +0200 |
commit | 472efa8174626a00ffdf5b39e1a44ac419cd3698 (patch) | |
tree | bd4a6bf77cf92aaa2529ead260cda91455e9ad09 /src/Entities | |
parent | ChunkGenerator: Log world seed when creating a new one. (diff) | |
download | cuberite-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.h | 6 |
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; } |