Changeset 5966 for code/trunk
- Timestamp:
- Oct 19, 2009, 8:25:30 PM (15 years ago)
- Location:
- code/trunk/src/orxonox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/PlayerManager.cc
r5929 r5966 91 91 } 92 92 } 93 94 void PlayerManager::disconnectAllClients() 95 { 96 for( std::map<unsigned int, PlayerInfo*>::iterator it = this->clients_.begin(); it != this->clients_.end(); ) 97 this->clientDisconnected( (it++)->first ); 98 } 93 99 94 100 -
code/trunk/src/orxonox/PlayerManager.h
r5929 r5966 52 52 void clientConnected(unsigned int clientID); 53 53 void clientDisconnected(unsigned int clientID); 54 void disconnectAllClients(); 54 55 55 56 private: -
code/trunk/src/orxonox/gamestates/GSLevel.cc
r5929 r5966 117 117 if (GameMode::showsGraphics()) 118 118 { 119 // disconnect the HumanPlayer120 PlayerManager::getInstance().clientDisconnected(0);121 122 119 // unload all compositors (this is only necessary because we don't yet destroy all resources!) 123 120 Ogre::CompositorManager::getSingleton().removeAll(); … … 125 122 InputManager::getInstance().leaveState("game"); 126 123 } 124 125 // disconnect all HumanPlayers 126 PlayerManager::getInstance().disconnectAllClients(); 127 127 128 128 if (GameMode::isMaster())
Note: See TracChangeset
for help on using the changeset viewer.