diff --git a/source/common/models/model_kvx.h b/source/common/models/model_kvx.h index 2fa82b0ed..1491b03b4 100644 --- a/source/common/models/model_kvx.h +++ b/source/common/models/model_kvx.h @@ -15,9 +15,9 @@ struct FVoxelVertexHash // Returns the hash value for a key. hash_t Hash(const FModelVertex &key) { - int ix = xs_RoundToInt(key.x); - int iy = xs_RoundToInt(key.y); - int iz = xs_RoundToInt(key.z); + int ix = int(key.x); + int iy = int(key.y); + int iz = int(key.z); return (hash_t)(ix + (iy<<9) + (iz<<18)); } diff --git a/source/common/scripting/core/types.cpp b/source/common/scripting/core/types.cpp index fb844c62a..5dd7cd6b3 100644 --- a/source/common/scripting/core/types.cpp +++ b/source/common/scripting/core/types.cpp @@ -918,7 +918,7 @@ void PFloat::SetValue(void *addr, double val) int PFloat::GetValueInt(void *addr) const { - return xs_ToInt(GetValueFloat(addr)); + return int(GetValueFloat(addr)); } //==========================================================================