Changeset 1384
- Timestamp:
- May 22, 2008, 4:55:24 PM (17 years ago)
- Location:
- code/branches/network/src/orxonox/hud
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/hud/HUD.cc
r1362 r1384 104 104 energyBar->resize(); 105 105 106 float v = SpaceShip:: instance_s->getVelocity().length();107 float vmax = SpaceShip:: instance_s->getMaxSpeed();106 float v = SpaceShip::getLocalShip()->getVelocity().length(); 107 float vmax = SpaceShip::getLocalShip()->getMaxSpeed(); 108 108 speedoBar->setValue(v/vmax); 109 109 speedoBar->resize(); -
code/branches/network/src/orxonox/hud/RadarOverlayElement.cc
r1373 r1384 91 91 92 92 void RadarOverlayElement::update() { 93 shipPos_ = SpaceShip:: instance_s->getPosition();94 currentDir_ = SpaceShip:: instance_s->getOrientation()*initialDir_; // according to beni....95 currentOrth_ = SpaceShip:: instance_s->getOrientation()*initialOrth_;93 shipPos_ = SpaceShip::getLocalShip()->getPosition(); 94 currentDir_ = SpaceShip::getLocalShip()->getOrientation()*initialDir_; // according to beni.... 95 currentOrth_ = SpaceShip::getLocalShip()->getOrientation()*initialOrth_; 96 96 plane = Plane(currentDir_, shipPos_); 97 97
Note: See TracChangeset
for help on using the changeset viewer.