diff options
author | rubidium <rubidium@openttd.org> | 2007-01-04 18:10:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-01-04 18:10:40 +0000 |
commit | ae9750e69bb415d1d41ab63ecda566d6c61f2b47 (patch) | |
tree | ea1b145a0458b56d9a82668e8520cfe206388fb5 /src/openttd.c | |
parent | 2fda7e6c10551ad6a1573b8b78aa2d9f17620e88 (diff) | |
download | openttd-ae9750e69bb415d1d41ab63ecda566d6c61f2b47.tar.xz |
(svn r7825) -Codechange: make NetworkUDPClose close a single UDP socket. Use NetworkUDPStop to close all opened udp sockets (those were called NetworkUDPClose).
Diffstat (limited to 'src/openttd.c')
-rw-r--r-- | src/openttd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.c b/src/openttd.c index cbea7485f..2208fd3cf 100644 --- a/src/openttd.c +++ b/src/openttd.c @@ -747,10 +747,10 @@ void SwitchMode(int new_mode) if (_networking) { if (_network_server && (new_mode == SM_LOAD || new_mode == SM_NEWGAME)) { NetworkReboot(); - NetworkUDPClose(); + NetworkUDPStop(); } else { NetworkDisconnect(); - NetworkUDPClose(); + NetworkUDPStop(); } } |