mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Clean up MSVC warning [C4305]: truncation from 'double' to 'F32'
This commit is contained in:
parent
489689aed3
commit
fcb906d598
3 changed files with 5 additions and 5 deletions
|
|
@ -1392,7 +1392,7 @@ void SceneContainer::getBinRange( const F32 min, const F32 max, U32& minBin, U32
|
|||
// This is truly lame, but it can happen. There must be a better way to
|
||||
// deal with this.
|
||||
if (minCoord == SceneContainer::csmTotalBinSize)
|
||||
minCoord = SceneContainer::csmTotalBinSize - 0.01;
|
||||
minCoord = SceneContainer::csmTotalBinSize - 0.01f;
|
||||
}
|
||||
|
||||
AssertFatal(minCoord >= 0.0 && minCoord < SceneContainer::csmTotalBinSize, "Bad minCoord");
|
||||
|
|
@ -1415,7 +1415,7 @@ void SceneContainer::getBinRange( const F32 min, const F32 max, U32& minBin, U32
|
|||
// This is truly lame, but it can happen. There must be a better way to
|
||||
// deal with this.
|
||||
if (minCoord == SceneContainer::csmTotalBinSize)
|
||||
minCoord = SceneContainer::csmTotalBinSize - 0.01;
|
||||
minCoord = SceneContainer::csmTotalBinSize - 0.01f;
|
||||
}
|
||||
AssertFatal(minCoord >= 0.0 && minCoord < SceneContainer::csmTotalBinSize, "Bad minCoord");
|
||||
|
||||
|
|
@ -1426,7 +1426,7 @@ void SceneContainer::getBinRange( const F32 min, const F32 max, U32& minBin, U32
|
|||
// This is truly lame, but it can happen. There must be a better way to
|
||||
// deal with this.
|
||||
if (maxCoord == SceneContainer::csmTotalBinSize)
|
||||
maxCoord = SceneContainer::csmTotalBinSize - 0.01;
|
||||
maxCoord = SceneContainer::csmTotalBinSize - 0.01f;
|
||||
}
|
||||
AssertFatal(maxCoord >= 0.0 && maxCoord < SceneContainer::csmTotalBinSize, "Bad maxCoord");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue