Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4420 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc


Ignore:
Timestamp:
May 31, 2005, 5:27:49 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: faster and easier unsubscribe function implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r4419 r4420  
    171171{
    172172  PRINTF(3)("World::~World() - deleting current world\n");
    173   CommandNode* cn = Orxonox::getInstance()->getLocalInput();
    174   cn->unbind(this->localPlayer);
    175   cn->reset();
     173
     174  this->eventHandler->unsubscribe(this->localPlayer);
    176175
    177176  delete WorldInterface::getInstance();
     
    186185  //delete garbagecollecor
    187186  //delete animator
    188  
    189   this->eventHandler->unsubscribe(ES_GAME, KeyMapper::PEV_UP);
    190   this->eventHandler->unsubscribe(ES_GAME, KeyMapper::PEV_DOWN);
    191   this->eventHandler->unsubscribe(ES_GAME, KeyMapper::PEV_LEFT);
    192   this->eventHandler->unsubscribe(ES_GAME, KeyMapper::PEV_RIGHT);
    193   this->eventHandler->unsubscribe(ES_GAME, KeyMapper::PEV_FIRE1);
    194   this->eventHandler->unsubscribe(ES_GAME, KeyMapper::PEV_NEXT_WEAPON);
    195   this->eventHandler->unsubscribe(ES_GAME, KeyMapper::PEV_PREVIOUS_WEAPON);
    196 
    197187
    198188  LoadClassDescription::printAll();
Note: See TracChangeset for help on using the changeset viewer.