diff options
author | truelight <truelight@openttd.org> | 2005-05-17 16:01:19 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-05-17 16:01:19 +0000 |
commit | 143dd26ef5a4edb1ab8b3d918c7c3268f8a6a077 (patch) | |
tree | 40fae45144f288c777c92202e64d6063f1390599 | |
parent | 391c34c12bab637818b2231ba66362b3528a5d27 (diff) | |
download | openttd-143dd26ef5a4edb1ab8b3d918c7c3268f8a6a077.tar.xz |
(svn r2337) -Fix: NetworkUDPRemoveAdvertise wasn't fully correct (which made Darkvater go crazy ;))
-rw-r--r-- | network.c | 3 | ||||
-rw-r--r-- | network_udp.c | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -1018,7 +1018,8 @@ void NetworkDisconnect(void) } } - NetworkUDPRemoveAdvertise(); + if (_network_advertise) + NetworkUDPRemoveAdvertise(); DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0); diff --git a/network_udp.c b/network_udp.c index 885ee1045..e9cf01425 100644 --- a/network_udp.c +++ b/network_udp.c @@ -555,7 +555,7 @@ void NetworkUDPRemoveAdvertise(void) Packet *p; /* Check if we are advertising */ - if (!_networking || !_network_server || !_network_udp_server || !_network_advertise) + if (!_networking || !_network_server || !_network_udp_server) return; /* check for socket */ |