Changeset 6947 for code/branches/presentation3/src/modules/overlays/hud
- Timestamp:
 - May 21, 2010, 8:36:32 AM (15 years ago)
 - File:
 - 
          
- 1 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
code/branches/presentation3/src/modules/overlays/hud/HUDNavigation.cc
r6942 r6947 134 134 { 135 135 // Get Distance to HumanController and save it in the TextAreaOverlayElement. 136 int dist = (int)((it->first->getRVWorldPosition() - HumanController::getLocalController EntityAsPawn()->getWorldPosition()).length() + 0.5f);136 int dist = (int)((it->first->getRVWorldPosition() - HumanController::getLocalControllerSingleton()->getControllableEntity()->getWorldPosition()).length() + 0.5f); 137 137 it->second.text_->setCaption(multi_cast<std::string>(dist)); 138 138 float textLength = multi_cast<std::string>(dist).size() * it->second.text_->getCharHeight() * 0.3f;  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






