Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1457


Ignore:
Timestamp:
May 28, 2008, 7:21:06 PM (16 years ago)
Author:
FelixSchulthess
Message:

removed three warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/hud/Navigation.cc

    r1456 r1457  
    9494    void Navigation::updateMarker(){
    9595        // set text
    96         int dist = (float)(getDist2Focus()/100);
     96        int dist = (int) getDist2Focus()/100;
    9797        navText_->setCaption(Ogre::StringConverter::toString(dist));
    9898
     
    103103        float xPosRel = 0.5*pos.x+0.5;
    104104        float yPosRel = 1-(0.5*pos.y+0.5);
    105         int xPos = xPosRel*windowW_;
    106         int yPos = yPosRel*windowH_;
     105        int xPos = (int) xPosRel*windowW_;
     106        int yPos = (int) yPosRel*windowH_;
    107107        int xFromCenter = xPos-windowW_/2;
    108108        int yFromCenter = yPos-windowH_/2;
Note: See TracChangeset for help on using the changeset viewer.