Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2008, 6:52:17 PM (16 years ago)
Author:
FelixSchulthess
Message:

moved navigation marker to new class: Navigation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/hud/Navigation.cc

    r1394 r1395  
    2727
    2828#include <OgreOverlayManager.h>
     29#include <OgreStringConverter.h>
    2930#include <GraphicsEngine.h>
    3031#include "objects/SpaceShip.h"
     
    109110
    110111        int d = (float)(getDist2Focus()/10);
    111         if(d) test->setCaption("Distance: " + Ogre::StringConverter::toString(d));
    112         else test->setCaption("");
     112        if(d) navText_->setCaption("Distance: " + Ogre::StringConverter::toString(d));
     113        else navText_->setCaption("");
    113114    }
    114115
Note: See TracChangeset for help on using the changeset viewer.