Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2008, 4:30:13 PM (15 years ago)
Author:
polakma
Message:

fixed parentWeaponSystem-Pointer bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponPack.cc

    r2319 r2327  
    3939namespace orxonox
    4040{
     41    CreateFactory(WeaponPack);
     42
    4143    WeaponPack::WeaponPack(BaseObject* creator) : BaseObject(creator)
    4244    {
     
    6668        for (int i=0; i < (int) this->weapons_.size(); i++)
    6769        {
    68 COUT(0) << "WeaponPack::fire"<< i << std::endl;
     70COUT(0) << "WeaponPack::fire (attached from WeaponSet)"<< i << std::endl;
    6971            this->weapons_[i]->fire();
    7072        }
     
    9496    void WeaponPack::addWeapon(Weapon * weapon)
    9597    {
     98        weapon->setParentWeaponSystem(this->parentWeaponSystem_);
    9699        this->weapons_.push_back(weapon);
    97100    }
Note: See TracChangeset for help on using the changeset viewer.