mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
-removed some xs_float casts that are not really necessary.
This commit is contained in:
parent
8aa96777b0
commit
864c0b71e0
2 changed files with 4 additions and 4 deletions
|
@ -15,9 +15,9 @@ struct FVoxelVertexHash
|
||||||
// Returns the hash value for a key.
|
// Returns the hash value for a key.
|
||||||
hash_t Hash(const FModelVertex &key)
|
hash_t Hash(const FModelVertex &key)
|
||||||
{
|
{
|
||||||
int ix = xs_RoundToInt(key.x);
|
int ix = int(key.x);
|
||||||
int iy = xs_RoundToInt(key.y);
|
int iy = int(key.y);
|
||||||
int iz = xs_RoundToInt(key.z);
|
int iz = int(key.z);
|
||||||
return (hash_t)(ix + (iy<<9) + (iz<<18));
|
return (hash_t)(ix + (iy<<9) + (iz<<18));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -918,7 +918,7 @@ void PFloat::SetValue(void *addr, double val)
|
||||||
|
|
||||||
int PFloat::GetValueInt(void *addr) const
|
int PFloat::GetValueInt(void *addr) const
|
||||||
{
|
{
|
||||||
return xs_ToInt(GetValueFloat(addr));
|
return int(GetValueFloat(addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
Loading…
Reference in a new issue