Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 15, 2014, 3:53:11 PM (10 years ago)
Author:
noep
Message:

Expanded functionality of PartDestructionEvents, fixed cursor not showing when flying a ModularSpaceShip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/modularships/src/orxonox/items/ShipPart.cc

    r10055 r10058  
    5252        RegisterObject(ShipPart);
    5353        this->setAlive(true);
     54        this->setEventExecution(true);
    5455    }
    5556
     
    103104        this->setAlive(false);
    104105
    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            }
    110113        }
    111114
Note: See TracChangeset for help on using the changeset viewer.