Changeset 10675 in orxonox.OLD for branches/vs-enhencements/src/world_entities/space_ships
- Timestamp:
- Jun 7, 2007, 2:28:59 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/world_entities/space_ships/space_ship.cc
r10674 r10675 296 296 this->toList(OM_GROUP_00); 297 297 298 // if ( this->hasPlayer() ){ 299 // State::getPlayer()->hud().setShieldWidget(this->getShieldWidget()); 300 // State::getPlayer()->hud().setEnergyWidget(this->getElectronicWidget()); 301 // } 298 299 dynamic_cast<WorldEntity*>(this)->createHealthWidget(); 300 dynamic_cast<WorldEntity*>(this)->createShieldWidget(); 301 dynamic_cast<WorldEntity*>(this)->createElectronicWidget(); 302 303 if ( this->hasPlayer() ){ 304 State::getPlayer()->hud().setShieldWidget(this->getShieldWidget()); 305 State::getPlayer()->hud().setEnergyWidget(this->getElectronicWidget()); 306 } 302 307 } 303 308 … … 309 314 void SpaceShip::loadParams(const TiXmlElement* root) 310 315 { 316 if(!root) 317 return; 318 311 319 Playable::loadParams(root); 312 320
Note: See TracChangeset
for help on using the changeset viewer.