Changeset 1457
- Timestamp:
- May 28, 2008, 7:21:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/hud/Navigation.cc
r1456 r1457 94 94 void Navigation::updateMarker(){ 95 95 // set text 96 int dist = ( float)(getDist2Focus()/100);96 int dist = (int) getDist2Focus()/100; 97 97 navText_->setCaption(Ogre::StringConverter::toString(dist)); 98 98 … … 103 103 float xPosRel = 0.5*pos.x+0.5; 104 104 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_; 107 107 int xFromCenter = xPos-windowW_/2; 108 108 int yFromCenter = yPos-windowH_/2;
Note: See TracChangeset
for help on using the changeset viewer.