mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-19 06:33: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
|
|
@ -216,7 +216,7 @@ void Frustum::setNearFarDist( F32 nearDist, F32 farDist )
|
|||
// Recalculate the frustum.
|
||||
MatrixF xfm( mTransform );
|
||||
|
||||
const F32 CENTER_EPSILON = 0.001;
|
||||
const F32 CENTER_EPSILON = 0.001f;
|
||||
F32 centerX = mNearLeft + (mNearRight - mNearLeft) * 0.5;
|
||||
F32 centerY = mNearBottom + (mNearTop - mNearBottom) * 0.5;
|
||||
if ((centerX > CENTER_EPSILON || centerX < -CENTER_EPSILON) || (centerY > CENTER_EPSILON || centerY < -CENTER_EPSILON) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue