Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1458 for code


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

do not play with typecasts…

File:
1 edited

Legend:

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

    r1457 r1458  
    103103        float xPosRel = 0.5*pos.x+0.5;
    104104        float yPosRel = 1-(0.5*pos.y+0.5);
    105         int xPos = (int) xPosRel*windowW_;
    106         int yPos = (int) 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.