Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 31, 2015, 11:06:37 AM (9 years ago)
Author:
landauf
Message:

fixed warnings with MSVC14

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/pong/PongAI.cc

    r9667 r10727  
    211211    {
    212212        // Calculate the exponent for the position-formula
    213         float exp = pow(10, 1 - 2*this->strength_); // strength: 0   -> exp = 10
    214                                                     // strength: 0.5 -> exp = 1
    215                                                     // strength: 1   -> exp = 0.1
     213        float exp = pow(10.0f, 1.0f - 2.0f*this->strength_); // strength: 0   -> exp = 10
     214                                                             // strength: 0.5 -> exp = 1
     215                                                             // strength: 1   -> exp = 0.1
    216216
    217217        // Calculate the relative position where to hit the ball with the bat
Note: See TracChangeset for help on using the changeset viewer.