Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 21, 2010, 8:36:32 AM (14 years ago)
Author:
scheusso
Message:

fixed a bug which caused a segfault when shooting a rocket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/modules/overlays/hud/HUDNavigation.cc

    r6942 r6947  
    134134        {
    135135            // Get Distance to HumanController and save it in the TextAreaOverlayElement.
    136             int dist = (int)((it->first->getRVWorldPosition() - HumanController::getLocalControllerEntityAsPawn()->getWorldPosition()).length() + 0.5f);
     136            int dist = (int)((it->first->getRVWorldPosition() - HumanController::getLocalControllerSingleton()->getControllableEntity()->getWorldPosition()).length() + 0.5f);
    137137            it->second.text_->setCaption(multi_cast<std::string>(dist));
    138138            float textLength = multi_cast<std::string>(dist).size() * it->second.text_->getCharHeight() * 0.3f;
Note: See TracChangeset for help on using the changeset viewer.