Changeset 2846 for code/branches/gui/src/orxonox
- Timestamp:
- Mar 25, 2009, 6:24:15 PM (16 years ago)
- Location:
- code/branches/gui/src/orxonox/gamestates
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSClient.cc
r2844 r2846 62 62 ThrowException(InitialisationFailed, "Could not establish connection with server."); 63 63 64 client_->update( Core::getGameClock());64 client_->update(Game::getInstance().getGameClock()); 65 65 } 66 66 -
code/branches/gui/src/orxonox/gamestates/GSGraphics.cc
r2844 r2846 113 113 void GSGraphics::deactivate() 114 114 { 115 if (Core::showsGraphics()) 116 InputManager::getInstance().requestLeaveState("master"); 115 InputManager::getInstance().requestLeaveState("master"); 117 116 118 117 delete this->guiManager_; … … 129 128 delete graphicsManager_; 130 129 131 if (Core::showsGraphics()) 130 masterInputState_->setHandler(0); 131 InputManager::getInstance().requestDestroyState("master"); 132 if (this->masterKeyBinder_) 132 133 { 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; 140 136 } 137 138 Core::setShowsGraphics(false); 141 139 } 142 140 -
code/branches/gui/src/orxonox/gamestates/GSRoot.cc
r2845 r2846 115 115 uint64_t timeBeforeTick = time.getRealMicroseconds(); 116 116 117 Core::getInstance().update(time);118 119 117 for (ObjectList<TimerBase>::iterator it = ObjectList<TimerBase>::begin(); it; ++it) 120 118 it->tick(time);
Note: See TracChangeset
for help on using the changeset viewer.