Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9960


Ignore:
Timestamp:
Jan 3, 2014, 8:57:13 PM (11 years ago)
Author:
landauf
Message:

fixed warning (msvc): the cast affected only '50' and not the whole expression. added braces and used a static_cast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/util/Math.cc

    r9951 r9960  
    285285        orxonox::Vector3 distanceShip = getTransformedVector(distance, mydirection, myorthonormal, myside);
    286286
    287         return (int) 50 - 100*distanceShip.x;
     287        return static_cast<int>(50 - 100*distanceShip.x);
    288288    }
    289289
Note: See TracChangeset for help on using the changeset viewer.