Changeset 9600 in orxonox.OLD for branches/proxy/src/lib/network/proxy/proxy_control.cc
- Timestamp:
- Jul 29, 2006, 9:59:20 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/proxy/proxy_control.cc
r9599 r9600 16 16 17 17 #include "class_list.h" 18 18 #include "shell_command.h" 19 19 20 20 #include "state.h" 21 21 #include "shared_network_data.h" 22 #include "network_manager.h" 22 23 #include "network_game_manager.h" 23 24 #include "ip.h" … … 35 36 ProxyControl* ProxyControl::singletonRef = NULL; 36 37 38 39 SHELL_COMMAND(forceReconnect, ProxyControl, forceReconnectionShell); 37 40 38 41 /** … … 227 230 228 231 232 /** 233 * a shell command wrapper 234 * @param userId the userId of the client/user :D 235 * @param serverId the userId of the server to connect to 236 */ 237 void ProxyControl::forceReconnectionShell(int userId, int serverId) 238 { 239 this->forceReconnection(userId, serverId); 240 } 241 229 242 230 243 /** … … 332 345 333 346 // handle it 334 if( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServerActive()) 347 if( SharedNetworkData::getInstance()->getHostID() == userId && 348 (SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServerActive())) 335 349 { 350 NetworkManager::getInstance()->reconnectToServer(IP(ipHost, 9999)); 336 351 } 337 352 break;
Note: See TracChangeset
for help on using the changeset viewer.