summaryrefslogtreecommitdiff
path: root/network_udp.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-04-14 12:19:51 +0000
committertruelight <truelight@openttd.org>2006-04-14 12:19:51 +0000
commit4a4b860ee7d7d45ad1e4e45c37fe134458ef2daa (patch)
tree3c6138af656325521d9c54a8e26448f224e35d62 /network_udp.c
parent060d5143ef4935214a852f7a7fdaed2c7631751c (diff)
downloadopenttd-4a4b860ee7d7d45ad1e4e45c37fe134458ef2daa.tar.xz
(svn r4413) -Fix: fixed a bug which pushed the client back to the main menu when a
server is in the mainserver-list which sends out illegal signals. Many tnx to 'test' for finding and isolating the problem. -Fix: also specify the problem a bit better
Diffstat (limited to 'network_udp.c')
-rw-r--r--network_udp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/network_udp.c b/network_udp.c
index 7fed91b10..5ee2bb6ea 100644
--- a/network_udp.c
+++ b/network_udp.c
@@ -328,8 +328,12 @@ static void NetworkHandleUDPPacket(Packet* p, struct sockaddr_in* client_addr)
if (type < PACKET_UDP_END && _network_udp_packet[type] != NULL && !_udp_cs.quited) {
_network_udp_packet[type](p, client_addr);
- } else {
- DEBUG(net, 0)("[NET][UDP] Received invalid packet type %d", type);
+ } else {
+ if (!_udp_cs.quited) {
+ DEBUG(net, 0)("[NET][UDP] Received invalid packet type %d", type);
+ } else {
+ DEBUG(net, 0)("[NET][UDP] Received illegal packet");
+ }
}
}