Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7111 for code/branches


Ignore:
Timestamp:
Jun 3, 2010, 10:51:10 AM (14 years ago)
Author:
rgrieder
Message:

Fixed MSVC build: std::pow(float, double) results in overload ambiguity.
Using std::pow(float, float).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/orxonox/graphics/Model.cc

    r7054 r7111  
    143143                        {
    144144    //                         float factor = scaleFactor*5/lodLevel_;
    145                             float factor = pow(volume,2.0/3.0)*15/lodLevel_;
     145                            float factor = pow(volume, 2.0f / 3.0f) * 15.0f / lodLevel_;
    146146                           
    147147                            COUT(4) << "LodLevel set with factor: " << factor << endl;
Note: See TracChangeset for help on using the changeset viewer.