- Timestamp:
- May 15, 2014, 3:53:11 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/modularships/src/orxonox/items/ShipPart.cc
r10055 r10058 52 52 RegisterObject(ShipPart); 53 53 this->setAlive(true); 54 this->setEventExecution(true); 54 55 } 55 56 … … 103 104 this->setAlive(false); 104 105 105 // Execute all destruction events 106 for (unsigned int i = 0; i < this->eventList_.size(); i++) 107 { 108 orxout() << "executing" << endl; 109 this->getDestructionEvent(i)->execute(); 106 if(eventExecution_) 107 { 108 // Execute all destruction events 109 for (unsigned int i = 0; i < this->eventList_.size(); i++) 110 { 111 this->getDestructionEvent(i)->execute(); 112 } 110 113 } 111 114
Note: See TracChangeset
for help on using the changeset viewer.