Changeset 849 for trunk/engine/VideoServices/3DViewport.cpp – HoverRace
Show
Ignore:
Timestamp:
02/04/10 15:17:57 (6 months ago)
Author:
ryan
Message:

Eliminate precision ambiguity

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/engine/VideoServices/3DViewport.cpp

    r504 r849  
    137137            static_cast<MR_Int32>( 
    138138                1024 * MR_BACK_Y_RES * mPlanVW / 
    139                 (sqrt(pow(mPlanDist, 2) + pow((lCounter - mXRes / 2) * mPlanHW / (mXRes / 2), 2)) * (mYRes / 2)) 
     139                (sqrt(pow(mPlanDist, 2.0f) + pow((lCounter - mXRes / 2) * mPlanHW / (mXRes / 2), 2.0f)) * (mYRes / 2)) 
    140140                ); 
    141141    }