diff options
author | archshift <admin@archshift.com> | 2014-09-04 01:51:38 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-10-09 23:57:57 +0200 |
commit | 76b37acb421bf10e094182b2e9be111eb29c46f1 (patch) | |
tree | e35345c1278193765e3d170e928c44e3a469930a /src/Entities | |
parent | Use static casts instead of C casts, add floor-cast functions (diff) | |
download | cuberite-76b37acb421bf10e094182b2e9be111eb29c46f1.tar cuberite-76b37acb421bf10e094182b2e9be111eb29c46f1.tar.gz cuberite-76b37acb421bf10e094182b2e9be111eb29c46f1.tar.bz2 cuberite-76b37acb421bf10e094182b2e9be111eb29c46f1.tar.lz cuberite-76b37acb421bf10e094182b2e9be111eb29c46f1.tar.xz cuberite-76b37acb421bf10e094182b2e9be111eb29c46f1.tar.zst cuberite-76b37acb421bf10e094182b2e9be111eb29c46f1.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 0a03eb3f2..f0577aba2 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 FloorC(GetPosX()) +#define POSY_TOINT FloorC(GetPosY()) +#define POSZ_TOINT FloorC(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; } |