diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-25 20:02:13 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-25 20:02:13 +0100 |
commit | 7468ba0f107ed01275f346c87ff5bb265dbbff3d (patch) | |
tree | 5c1c2563b5e95bfbfb999dee891150b99369f926 /src/Entities/Entity.h | |
parent | Attack() is no longer always called (diff) | |
download | cuberite-7468ba0f107ed01275f346c87ff5bb265dbbff3d.tar cuberite-7468ba0f107ed01275f346c87ff5bb265dbbff3d.tar.gz cuberite-7468ba0f107ed01275f346c87ff5bb265dbbff3d.tar.bz2 cuberite-7468ba0f107ed01275f346c87ff5bb265dbbff3d.tar.lz cuberite-7468ba0f107ed01275f346c87ff5bb265dbbff3d.tar.xz cuberite-7468ba0f107ed01275f346c87ff5bb265dbbff3d.tar.zst cuberite-7468ba0f107ed01275f346c87ff5bb265dbbff3d.zip |
Diffstat (limited to 'src/Entities/Entity.h')
-rw-r--r-- | src/Entities/Entity.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index f6fa58bb2..b2edfc2b4 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -29,6 +29,11 @@ return super::GetClass(); \ } +#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) + |