Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 25, 2009, 6:24:15 PM (15 years ago)
Author:
rgrieder
Message:

Moving game clock from Core to Game.
Other small fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/gamestates/GSGraphics.cc

    r2844 r2846  
    113113    void GSGraphics::deactivate()
    114114    {
    115         if (Core::showsGraphics())
    116             InputManager::getInstance().requestLeaveState("master");
     115        InputManager::getInstance().requestLeaveState("master");
    117116
    118117        delete this->guiManager_;
     
    129128        delete graphicsManager_;
    130129
    131         if (Core::showsGraphics())
     130        masterInputState_->setHandler(0);
     131        InputManager::getInstance().requestDestroyState("master");
     132        if (this->masterKeyBinder_)
    132133        {
    133             masterInputState_->setHandler(0);
    134             InputManager::getInstance().requestDestroyState("master");
    135             if (this->masterKeyBinder_)
    136             {
    137                 delete this->masterKeyBinder_;
    138                 this->masterKeyBinder_ = 0;
    139             }
     134            delete this->masterKeyBinder_;
     135            this->masterKeyBinder_ = 0;
    140136        }
     137
     138        Core::setShowsGraphics(false);
    141139    }
    142140
Note: See TracChangeset for help on using the changeset viewer.