Changeset 1456 for code/branches/network/src/orxonox/hud/Navigation.cc
- Timestamp:
- May 28, 2008, 7:12:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/hud/Navigation.cc
r1454 r1456 40 40 #include "RadarOverlayElement.h" 41 41 #include "HUD.h" 42 #include "core/Debug.h" 42 43 43 44 namespace orxonox … … 204 205 void Navigation::cycleFocus(){ 205 206 if(focus_ == NULL){ 206 focus_ = HUD::getSingleton().getFirstRadarObject(); 207 it_ = HUD::getSingleton().roSet.begin(); 208 focus_ = *it_; 207 209 } 208 210 else{ 209 211 focus_->resetColour(); 210 if(focus_ != NULL) focus_ = focus_->next; 211 } 212 212 if(it_ != HUD::getSingleton().roSet.end()){ 213 focus_ = *it_; 214 ++it_; 215 } 216 else focus_ = NULL; 217 } 213 218 if(focus_ == NULL){ 214 219 navMarker_->hide();
Note: See TracChangeset
for help on using the changeset viewer.