diff options
author | archshift <admin@archshift.com> | 2014-09-04 01:22:04 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-09-04 01:23:03 +0200 |
commit | e1206568ec71c0e7017c1f764fdc146ba86ce30a (patch) | |
tree | f3e6dcfd16d1d1dc4cea4717efc30e04857a1111 /src/Entities | |
parent | In 1.8, carrots and potatoes yield one less hunger point. (diff) | |
download | cuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.tar cuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.tar.gz cuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.tar.bz2 cuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.tar.lz cuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.tar.xz cuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.tar.zst cuberite-e1206568ec71c0e7017c1f764fdc146ba86ce30a.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 73e8a0d8b..b9c280b6b 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -27,9 +27,9 @@ return super::GetClass(); \ } -#define POSX_TOINT FloorD(GetPosX()) -#define POSY_TOINT FloorD(GetPosY()) -#define POSZ_TOINT FloorD(GetPosZ()) +#define POSX_TOINT (int)floor(GetPosX()) +#define POSY_TOINT (int)floor(GetPosY()) +#define POSZ_TOINT (int)floor(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; } |