Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1358


Ignore:
Timestamp:
May 22, 2008, 1:24:20 PM (16 years ago)
Author:
FelixSchulthess
Message:

added console command cycleFocus to cycle through radar objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud3/src/orxonox/hud/RadarOverlayElement.cc

    r1357 r1358  
    3030namespace orxonox
    3131{
    32     //ConsoleCommand(RadarOverlayElement, cycleFocus, AccessLevel::User, true);
     32    ConsoleCommandShortcut(RadarOverlayElement, cycleFocus, AccessLevel::User);
    3333
    3434    using namespace Ogre;
     
    182182
    183183        float RadarOverlayElement::getDist2Focus(){
     184            if(focus_ == NULL) return(0.0);
    184185            return((focus_->pos_-shipPos_).length());
    185186        }
Note: See TracChangeset for help on using the changeset viewer.