Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2008, 6:26:53 PM (15 years ago)
Author:
polakma
Message:

fixed parentWeaponSystem-Pointer for all WeaponPacks and its Weapons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/worldentities/pawns/Pawn.cc

    r2327 r2337  
    167167    {   
    168168COUT(0) << "Pawn::setWeaponPack" << std::endl;
    169         this->weaponSystem_->attachWeaponPack( wPack,wPack->getFireMode() );   }
     169        this->weaponSystem_->attachWeaponPack( wPack,wPack->getFireMode() );
     170        wPack->setParentWeaponSystem(this->weaponSystem_);
     171        wPack->setWeaponSystemToAllWeapons(this->weaponSystem_);
     172    }
     173
    170174    WeaponPack * Pawn::getWeaponPack(unsigned int firemode) const
    171175    {   return this->weaponSystem_->getWeaponPackPointer(firemode);    }
Note: See TracChangeset for help on using the changeset viewer.