Changeset 6535 in orxonox.OLD for branches/powerups
- Timestamp:
- Jan 18, 2006, 1:25:51 PM (19 years ago)
- Location:
- branches/powerups/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/powerups/src/world_entities/playable.cc
r6487 r6535 149 149 Weapon* weapon = dynamic_cast<WeaponPowerUp*>(powerUp)->getWeapon(); 150 150 WeaponManager* manager = this->getWeaponManager(); 151 int slot = manager->getNextFreeSlot( 0, weapon->getCapability());151 int slot = manager->getNextFreeSlot(2, weapon->getCapability()); 152 152 if(slot >= 0) { 153 manager->addWeapon(weapon, 0, slot);153 manager->addWeapon(weapon, 2, slot); 154 154 return true; 155 155 } -
branches/powerups/src/world_entities/power_ups/weapon_power_up.cc
r6424 r6535 50 50 void WeaponPowerUp::init() 51 51 { 52 weaponXML = NULL; 53 weapon = NULL; 52 this->setClassID(CL_WEAPON_POWER_UP, "WeaponPowerUp"); 53 this->weaponXML = NULL; 54 this->weapon = NULL; 54 55 } 55 56
Note: See TracChangeset
for help on using the changeset viewer.