Changeset 10270 in orxonox.OLD for branches/playability/src/util/hud.cc
- Timestamp:
- Jan 17, 2007, 5:52:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/util/hud.cc
r10234 r10270 30 30 #include "specials/glgui_notifier.h" 31 31 #include "elements/glgui_radar.h" 32 #include "world_entities/space_ships/space_ship.h" 32 33 33 34 … … 69 70 70 71 this->_radar = new OrxGui::GLGuiRadar(); 72 this->radarCenterNode = NULL; 71 73 72 74 this->subscribeEvent(ES_ALL, EV_VIDEO_RESIZE); … … 329 331 PRINTF(4)("UPDATING RADAR\n"); 330 332 this->_radar->setParent2D(this->leftRect); 331 this->_radar->setCenterNode(State::getPlayer()->getPlayable()); 333 if (radarCenterNode == NULL) 334 this->_radar->setCenterNode(State::getPlayer()->getPlayable()); 335 else 336 this->_radar->setCenterNode(this->radarCenterNode); 337 332 338 //this->_radar->addEntityList(&State::getObjectManager()->getEntityList((OM_LIST)(State::getPlayer()->getPlayable()->getOMListNumber()+1)), Color(.4, .4, 1.0)); 333 339 this->_radar->addEntityList(&State::getObjectManager()->getEntityList(OM_GROUP_00), Color(1, 0, 0));
Note: See TracChangeset
for help on using the changeset viewer.