diff options
author | rubidium <rubidium@openttd.org> | 2007-01-12 14:30:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-01-12 14:30:01 +0000 |
commit | c48aa5db45e99981eff70be5f8406959dcba2237 (patch) | |
tree | 5b04486a0d687db7bc0de87c249ab1904e51c568 /src/openttd.cpp | |
parent | bccef9f9485628982c78423e4791b04aea33227f (diff) | |
download | openttd-c48aa5db45e99981eff70be5f8406959dcba2237.tar.xz |
(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.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 92181045f..7db90a4a1 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -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(); } } |