(svn r8078) -Codechange: rewrite UDP part of the network code to make use classes. This is only one of the many steps to really cleanup the network code.
This commit is contained in:
@@ -748,10 +748,10 @@ void SwitchMode(int new_mode)
|
||||
if (_networking) {
|
||||
if (_network_server && (new_mode == SM_LOAD || new_mode == SM_NEWGAME)) {
|
||||
NetworkReboot();
|
||||
NetworkUDPStop();
|
||||
NetworkUDPCloseAll();
|
||||
} else {
|
||||
NetworkDisconnect();
|
||||
NetworkUDPStop();
|
||||
NetworkUDPCloseAll();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user