-removed some xs_float casts that are not really necessary.

This commit is contained in:
Christoph Oelckers 2022-08-07 10:54:52 +02:00
parent 8aa96777b0
commit 864c0b71e0
2 changed files with 4 additions and 4 deletions

View file

@ -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));
}

View file

@ -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));
}
//==========================================================================