diff options
author | Alexander Harkness <me@bearbin.net> | 2024-11-07 21:10:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-07 21:10:44 +0100 |
commit | 8ca73f192932b3b32aea8b2074f9548cc4283450 (patch) | |
tree | 17587dcf478931039a13de5d73bb423abc30d1cf | |
parent | Clean up CanBeAt Functions (#5587) (diff) | |
download | cuberite-8ca73f192932b3b32aea8b2074f9548cc4283450.tar cuberite-8ca73f192932b3b32aea8b2074f9548cc4283450.tar.gz cuberite-8ca73f192932b3b32aea8b2074f9548cc4283450.tar.bz2 cuberite-8ca73f192932b3b32aea8b2074f9548cc4283450.tar.lz cuberite-8ca73f192932b3b32aea8b2074f9548cc4283450.tar.xz cuberite-8ca73f192932b3b32aea8b2074f9548cc4283450.tar.zst cuberite-8ca73f192932b3b32aea8b2074f9548cc4283450.zip |
-rw-r--r-- | src/Vector3.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Vector3.h b/src/Vector3.h index b48f35786..5df14b3ac 100644 --- a/src/Vector3.h +++ b/src/Vector3.h @@ -31,14 +31,14 @@ public: // tolua_end // Conversion constructors where U is not the same as T leaving the copy-constructor implicitly generated template <typename U, std::enable_if_t<(!std::is_same<U, T>::value) && ((!std::is_integral<T>::value) || (std::is_integral<U>::value)), bool> = true> - constexpr Vector3<T>(const Vector3<U> & a_Rhs): + constexpr Vector3(const Vector3<U> & a_Rhs): x(static_cast<T>(a_Rhs.x)), y(static_cast<T>(a_Rhs.y)), z(static_cast<T>(a_Rhs.z)) { } template <typename U, std::enable_if_t<(!std::is_same<U, T>::value) && ((std::is_integral<T>::value) && (!std::is_integral<U>::value)), bool> = true> - constexpr Vector3<T>(const Vector3<U> & a_Rhs): + constexpr Vector3(const Vector3<U> & a_Rhs): x(static_cast<T>(std::floor(a_Rhs.x))), y(static_cast<T>(std::floor(a_Rhs.y))), z(static_cast<T>(std::floor(a_Rhs.z))) |