From 848761e3a9928f86b381ff6cbfdaaca81080b487 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 17 Feb 2011 18:45:44 +0000 Subject: (svn r22092) -Fix-ish (r22068): when you change a boolean to a enum, check specifically for a particular value --- src/network/network_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index fc5325e06..0d5fb1c6f 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -285,7 +285,7 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::CloseConnection(NetworkRecvSta NetworkClientSocket *cs; FOR_ALL_CLIENT_SOCKETS(cs) { if (cs->writable) { - if (cs->SendPackets() && cs->status == STATUS_MAP) { + if (cs->SendPackets() != SPS_CLOSED && cs->status == STATUS_MAP) { /* This client is in the middle of a map-send, call the function for that */ cs->SendMap(); } -- cgit v1.2.3-70-g09d2