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/Vector3.h | |
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/Vector3.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Vector3.h b/src/Vector3.h index 782b0d1c9..937c8fdfa 100644 --- a/src/Vector3.h +++ b/src/Vector3.h @@ -137,9 +137,9 @@ public: inline Vector3<int> Floor(void) const { return Vector3<int>( - static_cast<int>(floor(x)), - static_cast<int>(floor(y)), - static_cast<int>(floor(z)) + FloorC(x), + FloorC(y), + FloorC(z) ); } |