Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4420 in orxonox.OLD for orxonox/trunk/src/world_entities/camera.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/world_entities/camera.cc

    r4419 r4420  
    5757Camera::~Camera(void)
    5858{
    59   EventHandler::getInstance()->unsubscribe(ES_GAME, KeyMapper::PEV_VIEW0);
    60   EventHandler::getInstance()->unsubscribe(ES_GAME, KeyMapper::PEV_VIEW1);
    61   EventHandler::getInstance()->unsubscribe(ES_GAME, KeyMapper::PEV_VIEW2);
    62   EventHandler::getInstance()->unsubscribe(ES_GAME, KeyMapper::PEV_VIEW3);
    63   EventHandler::getInstance()->unsubscribe(ES_GAME, KeyMapper::PEV_VIEW4);
    64   EventHandler::getInstance()->unsubscribe(ES_GAME, KeyMapper::PEV_VIEW5);
     59  EventHandler::getInstance()->unsubscribe(this);
    6560}
    6661
Note: See TracChangeset for help on using the changeset viewer.