Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2007, 2:28:59 PM (18 years ago)
Author:
nicolasc
Message:

xfer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/world_entities/space_ships/space_ship.cc

    r10674 r10675  
    296296  this->toList(OM_GROUP_00);
    297297
    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  }
    302307}
    303308
     
    309314void SpaceShip::loadParams(const TiXmlElement* root)
    310315{
     316  if(!root)
     317    return;
     318
    311319  Playable::loadParams(root);
    312320
Note: See TracChangeset for help on using the changeset viewer.