- Timestamp:
- Dec 10, 2008, 3:37:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/overlays/hud/HUDSpeedBar.cc
r2361 r2369 56 56 if (this->owner_ && this->owner_->getEngine()) 57 57 { 58 float v = this->owner_->getVelocity().length(); 59 float value = v / (this->owner_->getEngine()->getMaxSpeedFront() * this->owner_->getEngine()->getSpeedFactor() * this->owner_->getEngine()->getBoostFactor()); 60 if (value != this->getValue()) 61 this->setValue(value); 58 float value = this->owner_->getVelocity().length() / (this->owner_->getEngine()->getMaxSpeedFront() * this->owner_->getEngine()->getSpeedFactor() * this->owner_->getEngine()->getBoostFactor()); 59 this->setValue(value); 62 60 } 63 61 }
Note: See TracChangeset
for help on using the changeset viewer.