Changeset 847 for trunk/compilers/MazeCompiler/LevelBuilder.cpp – HoverRace
Show
Ignore:
Timestamp:
02/04/10 15:16:40 (6 months ago)
Author:
ryan
Message:

Eliminate precision ambiguity

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/compilers/MazeCompiler/LevelBuilder.cpp

    r480 r847  
    752752 
    753753    // Compute bonding box diag size 
    754     lReturnValue = sqrt(pow(pSection->mMax.mX - pSection->mMin.mX, 2) + pow(pSection->mMax.mY - pSection->mMin.mY, 2)) / 1000.0; 
     754    lReturnValue = sqrt(pow(pSection->mMax.mX - pSection->mMin.mX, 2.0f) + pow(pSection->mMax.mY - pSection->mMin.mY, 2.0f)) / 1000.0; 
    755755 
    756756    return lReturnValue;