Changeset 7879 for code/trunk/src/orxonox/gamestates
- Timestamp:
- Feb 13, 2011, 9:35:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gamestates/GSLevel.cc
r7876 r7879 111 111 { 112 112 if (GameMode::showsGraphics()) 113 { 113 InputManager::getInstance().leaveState("game"); 114 115 // disconnect all HumanPlayers 116 PlayerManager::getInstance().disconnectAllClients(); 117 118 if (GameMode::isMaster()) 119 this->unloadLevel(); 120 121 if (GameMode::showsGraphics()) 122 { 123 #if OGRE_VERSION < 0x010700 114 124 // unload all compositors (this is only necessary because we don't yet destroy all resources!) 115 125 Ogre::CompositorManager::getSingleton().removeAll(); 116 117 InputManager::getInstance().leaveState("game"); 118 } 119 120 // disconnect all HumanPlayers 121 PlayerManager::getInstance().disconnectAllClients(); 122 123 if (GameMode::isMaster()) 124 this->unloadLevel(); 125 126 if (GameMode::showsGraphics()) 127 { 126 #endif 127 128 128 gameInputState_->setHandler(0); 129 129 guiMouseOnlyInputState_->setHandler(0);
Note: See TracChangeset
for help on using the changeset viewer.