Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10516 in orxonox.OLD for trunk/src/world_entities/player.cc


Ignore:
Timestamp:
Jan 30, 2007, 9:17:21 PM (17 years ago)
Author:
patrick
Message:

merged playability back to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/player.cc

    r10368 r10516  
    100100  //this->_hud.updateWeaponManager();
    101101
    102   if (dynamic_cast<SpaceShip*>(this->playable) != 0)
    103       this->_hud.setWeaponManager(&this->playable->getWeaponManager(), &dynamic_cast<SpaceShip*>(this->playable)->getWeaponManagerSecondary());
    104     else
    105       this->_hud.setWeaponManager(&this->playable->getWeaponManager());
     102  if (dynamic_cast<SpaceShip*>(this->playable) != NULL)
     103    this->_hud.setWeaponManager(&this->playable->getWeaponManager(), &dynamic_cast<SpaceShip*>(this->playable)->getWeaponManagerSecondary());
     104  else
     105    this->_hud.setWeaponManager(&this->playable->getWeaponManager());
    106106}
    107107
Note: See TracChangeset for help on using the changeset viewer.