Changeset 1458
- Timestamp:
- May 28, 2008, 7:29:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/hud/Navigation.cc
r1457 r1458 103 103 float xPosRel = 0.5*pos.x+0.5; 104 104 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_); 107 107 int xFromCenter = xPos-windowW_/2; 108 108 int yFromCenter = yPos-windowH_/2;
Note: See TracChangeset
for help on using the changeset viewer.