Changeset 6137 in orxonox.OLD for branches/objectmanager/src/world_entities
- Timestamp:
- Dec 16, 2005, 6:10:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/objectmanager/src/world_entities/weapons/weapon_manager.cc
r6123 r6137 244 244 //! @todo check if the weapon is already assigned to another config in another slot 245 245 this->configs[configID][slotID] = weapon; 246 weapon->toList(parent->getOMListNumber());247 246 if (this->parent != NULL) 247 { 248 248 this->parent->addChild(weapon); 249 } 249 250 PRINTF(3)("Added a new Weapon to the WeaponManager: config %i/ slot %i\n", configID, slotID); 250 251 } … … 372 373 else 373 374 { 375 if (this->currentSlotConfig[i].currentWeapon != NULL) 376 this->currentSlotConfig[i].currentWeapon->toList(OM_NULL); 374 377 tickWeapon = this->currentSlotConfig[i].currentWeapon = this->currentSlotConfig[i].nextWeapon; 375 378 if (tickWeapon != NULL) … … 377 380 tickWeapon->requestAction(WA_ACTIVATE); 378 381 tickWeapon->setParent(&this->currentSlotConfig[i].position); 382 tickWeapon->toList(this->parent->getOMListNumber()); 379 383 this->currentSlotConfig[i].position.activateNode(); 380 384 }
Note: See TracChangeset
for help on using the changeset viewer.