Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6535 in orxonox.OLD for branches/powerups


Ignore:
Timestamp:
Jan 18, 2006, 1:25:51 PM (19 years ago)
Author:
manuel
Message:

param- and weaponpowerup debugged and working

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

Legend:

Unmodified
Added
Removed
  • branches/powerups/src/world_entities/playable.cc

    r6487 r6535  
    149149    Weapon* weapon = dynamic_cast<WeaponPowerUp*>(powerUp)->getWeapon();
    150150    WeaponManager* manager = this->getWeaponManager();
    151     int slot = manager->getNextFreeSlot(0, weapon->getCapability());
     151    int slot = manager->getNextFreeSlot(2, weapon->getCapability());
    152152    if(slot >= 0) {
    153       manager->addWeapon(weapon, 0, slot);
     153      manager->addWeapon(weapon, 2, slot);
    154154      return true;
    155155    }
  • branches/powerups/src/world_entities/power_ups/weapon_power_up.cc

    r6424 r6535  
    5050void WeaponPowerUp::init()
    5151{
    52   weaponXML = NULL;
    53   weapon = NULL;
     52  this->setClassID(CL_WEAPON_POWER_UP, "WeaponPowerUp");
     53  this->weaponXML = NULL;
     54  this->weapon = NULL;
    5455}
    5556
Note: See TracChangeset for help on using the changeset viewer.