Changeset 9398 in orxonox.OLD for branches/proxy/src/lib/network/proxy
- Timestamp:
- Jul 23, 2006, 11:43:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/proxy/network_settings.cc
r9397 r9398 17 17 18 18 #include "network_settings.h" 19 19 20 #include "netdefs.h" 21 #include "shared_network_data.h" 20 22 21 23 #include "loading/resource_manager.h" … … 38 40 // suggest a good standard max players value 39 41 this->maxPlayer = 10; 42 43 this->loadData(); 40 44 } 41 45 … … 82 86 83 87 this->loadNetworkSettings( root); 88 89 // set the new unique id offset 90 SharedNetworkData::getInstance()->setNewUniqueID( this->maxPlayer + 2); 84 91 } 85 92 … … 120 127 } 121 128 129 122 130 /** 123 131 * sets the proxy address to … … 126 134 void NetworkSettings::setProxyAddr(const std::string& proxyAddr) 127 135 { 136 137 if( !SharedNetworkData::getInstance()->isMasterServer()) 138 return; 139 128 140 IPaddress *ip = new IPaddress; 129 141
Note: See TracChangeset
for help on using the changeset viewer.