summaryrefslogtreecommitdiffstats
path: root/src/Vector3.h
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-09-04 01:51:38 +0200
committerarchshift <admin@archshift.com>2014-10-09 23:57:57 +0200
commit76b37acb421bf10e094182b2e9be111eb29c46f1 (patch)
treee35345c1278193765e3d170e928c44e3a469930a /src/Vector3.h
parentUse static casts instead of C casts, add floor-cast functions (diff)
downloadcuberite-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.h6
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)
);
}