(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:
rubidium
2007-01-12 14:30:01 +00:00
parent bccef9f948
commit c48aa5db45
8 changed files with 392 additions and 324 deletions

View File

@@ -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();
}
}