Changeset 9347 in orxonox.OLD for branches/proxy/src/story_entities
- Timestamp:
- Jul 20, 2006, 11:43:27 AM (18 years ago)
- Location:
- branches/proxy/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/story_entities/game_world_data.h
r7460 r9347 42 42 void loadGameRule(const TiXmlElement* root); 43 43 44 44 45 protected: 45 46 virtual ErrorMessage loadGUI(const TiXmlElement* root); -
branches/proxy/src/story_entities/multi_player_world_data.cc
r9235 r9347 47 47 #include "player_stats.h" 48 48 49 #include "proxy/proxy_settings.h" 49 50 50 51 #include "glmenu_imagescreen.h" … … 110 111 { 111 112 const TiXmlElement* element = NULL; 112 113 if( NetworkManager::getInstance()->is GameServer() )113 114 if( NetworkManager::getInstance()->isMasterServer() ) 114 115 { 115 116 /* load the spawning points */ … … 147 148 element = element->FirstChildElement(); 148 149 149 if( NetworkManager::getInstance()->is GameServer() )150 if( NetworkManager::getInstance()->isMasterServer() ) 150 151 { 151 152 while( element != NULL) … … 205 206 206 207 207 if( NetworkManager::getInstance()->is GameServer())208 if( NetworkManager::getInstance()->isMasterServer()) 208 209 { 209 210 this->localPlayer = new Player(); … … 280 281 GameWorldData::loadScene(root); 281 282 283 LoadParamXML(root, "ProxySettings", ProxySettings::getInstance(), ProxySettings, loadProxySettings); 284 282 285 // create server playable 283 if ( NetworkManager::getInstance()->is GameServer() )286 if ( NetworkManager::getInstance()->isMasterServer() ) 284 287 { 285 288 NetworkGameManager::getInstance()->signalNewPlayer( 0 ); … … 296 299 ErrorMessage MultiPlayerWorldData::unloadScene() 297 300 { 301 // delete the proxy settings 302 delete ProxySettings::getInstance(); 303 298 304 /* call underlying function */ 299 305 return GameWorldData::unloadScene();
Note: See TracChangeset
for help on using the changeset viewer.