Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 17, 2009, 11:53:35 PM (15 years ago)
Author:
rgrieder
Message:

Found a few more C-Style casts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc

    r3280 r3300  
    215215            if (angle < 0.0)
    216216                angle = -angle;
    217             angle -= 180.0f * (int)(angle / 180.0);
     217            angle -= 180.0f * static_caste<int>(angle / 180.0);
    218218
    219219            // take the reverse if angle is about 90 degrees
     
    277277        if (angle < 0.0)
    278278            angle = -angle;
    279         angle -= Ogre::Math::PI * (int)(angle / (Ogre::Math::PI));
     279        angle -= Ogre::Math::PI * static_cast<int>(angle / (Ogre::Math::PI));
    280280        if (angle > Ogre::Math::PI * 0.5)
    281281            angle = Ogre::Math::PI - angle;
Note: See TracChangeset for help on using the changeset viewer.