Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

fixed warnings with MSVC14

Location:
code/trunk/src/modules
Files:
4 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
  • code/trunk/src/modules/towerdefense/TowerDefense.cc

    r10629 r10727  
    331331            timeSinceLastSpawn_ = 0.0;
    332332
    333             timeUntilNextWave_ = waveNumber_+20;
     333            timeUntilNextWave_ = waveNumber_+20.0f;
    334334            waveSize_ = waveNumber_+5;
    335335        }
  • code/trunk/src/modules/towerdefense/TowerDefenseTower.cc

    r10629 r10727  
    6363            float reloadrate = getReloadRate();
    6464            float reloadwaittime = getReloadWaitTime();
    65             this->setDamageMultiplier((upgrade+1)*2);
     65            this->setDamageMultiplier((upgrade+1)*2.0f);
    6666            //this->setRotationThrust(2*this->getRotationThrust());
    6767            reloadrate = 0.5f*reloadrate;
  • code/trunk/src/modules/weapons/projectiles/SplitGunProjectile.cc

    r10629 r10727  
    134134            {
    135135                // Every child projectile should fly uniform in different directions -> Rotate the velocityOffset in every iteration
    136                 velocityOffset = Quaternion(Degree(360/numberOfChilds_), velocityInitial.normalisedCopy()) * velocityOffset;
     136                velocityOffset = Quaternion(Degree(360.0f/numberOfChilds_), velocityInitial.normalisedCopy()) * velocityOffset;
    137137                velocityOffset.normalise();
    138138
Note: See TracChangeset for help on using the changeset viewer.