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/weapons/LaserGun.cc

    r2331 r2337  
    6161        if ( this->getBulletReadyToShoot() && this->getMagazineReadyToShoot() )
    6262        {
     63COUT(0) << "LaserGun::fire - ready to shoot" << std::endl;   
    6364            //take munition
    64             this->getAttachedMunition()->removeBullets(1,this);
     65            this->getAttachedMunition(this->munitionType_)->removeBullets(1,this);
    6566            Weapon::bulletTimer();
    6667            this->setBulletReadyToShoot(false);
Note: See TracChangeset for help on using the changeset viewer.