Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10278 in orxonox.OLD for branches/playability/src/world_entities


Ignore:
Timestamp:
Jan 17, 2007, 7:23:47 PM (18 years ago)
Author:
muellmic
Message:

fixed bug, that set false Coor2Ds for the weapon-widgets when changing the weapon configuration. lots of thanks 2 marc!

Location:
branches/playability/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/player.cc

    r10120 r10278  
    9898void Player::weaponConfigChanged()
    9999{
    100   this->_hud.updateWeaponManager();
     100  //this->_hud.updateWeaponManager();
     101
     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());
    101106}
    102107
  • branches/playability/src/world_entities/weapons/weapon.cc

    r10252 r10278  
    392392OrxGui::GLGuiWidget* Weapon::getEnergyWidget()
    393393{
    394   if (this->energyWidget == NULL)
     394  if ( this->energyWidget == NULL)
    395395  {
    396396    this->energyWidget = new OrxGui::GLGuiEnergyWidgetVertical();
Note: See TracChangeset for help on using the changeset viewer.