diff options
author | Alexander Harkness <me@bearbin.net> | 2024-11-05 00:12:38 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2024-11-05 00:12:38 +0100 |
commit | 8d715666dbeb809ea625cd85211179283ad5d0f6 (patch) | |
tree | 526444f50583c4e4a26a91fd46665b853dc0b5e6 | |
parent | Added code to export definitions for a lua-language-server (#5475) (diff) | |
download | cuberite-8d715666dbeb809ea625cd85211179283ad5d0f6.tar cuberite-8d715666dbeb809ea625cd85211179283ad5d0f6.tar.gz cuberite-8d715666dbeb809ea625cd85211179283ad5d0f6.tar.bz2 cuberite-8d715666dbeb809ea625cd85211179283ad5d0f6.tar.lz cuberite-8d715666dbeb809ea625cd85211179283ad5d0f6.tar.xz cuberite-8d715666dbeb809ea625cd85211179283ad5d0f6.tar.zst cuberite-8d715666dbeb809ea625cd85211179283ad5d0f6.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))) |