Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Location:
code/branches/gui/src/orxonox/gamestates
Files:
3 edited

Legend:

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

    r2844 r2846  
    6262            ThrowException(InitialisationFailed, "Could not establish connection with server.");
    6363
    64         client_->update(Core::getGameClock());
     64        client_->update(Game::getInstance().getGameClock());
    6565    }
    6666
  • 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
  • code/branches/gui/src/orxonox/gamestates/GSRoot.cc

    r2845 r2846  
    115115        uint64_t timeBeforeTick = time.getRealMicroseconds();
    116116
    117         Core::getInstance().update(time);
    118 
    119117        for (ObjectList<TimerBase>::iterator it = ObjectList<TimerBase>::begin(); it; ++it)
    120118            it->tick(time);
Note: See TracChangeset for help on using the changeset viewer.