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/weaponSystem/WeaponPack.cc

    r2331 r2337  
    104104        return weapons_[index];
    105105    }
     106
     107    void WeaponPack::setWeaponSystemToAllWeapons(WeaponSystem * weaponSystem)
     108    {
     109        for (int i=0; i < (int) this->weapons_.size(); i++)
     110        {
     111            this->weapons_[i]->setParentWeaponSystem(weaponSystem);
     112        }
     113       
     114    }
    106115}
Note: See TracChangeset for help on using the changeset viewer.