- Timestamp:
- Dec 16, 2005, 6:10:59 PM (19 years ago)
- Location:
- branches/objectmanager/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/objectmanager/src/lib/collision_detection/cd_engine.cc
r6135 r6137 116 116 while (pre1 != list1.end()) 117 117 { 118 entity1 = pre1; 119 pre1++; 118 entity1 = pre1++; 120 119 if( likely((*entity1) != this->terrain)) 121 120 { … … 123 122 while (pre2 != list2.end()) 124 123 { 125 entity2 = pre2; 126 pre2++; 124 entity2 = pre2++; 127 125 if( likely((*entity2) != this->terrain)) 128 126 { -
branches/objectmanager/src/lib/coord/p_node.h
r6078 r6137 79 79 80 80 // ACTIVATION // 81 inline void activateNode() { this->bActive = t rue; };81 inline void activateNode() { this->bActive = this->bRelCoorChanged = this->bRelDirChanged = true; }; 82 82 inline void deactivateNode() { this->bActive = false; }; 83 83 inline bool getNodeActiveState() { return this->bActive; }; -
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.