summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-02-17 18:45:44 +0000
committerrubidium <rubidium@openttd.org>2011-02-17 18:45:44 +0000
commit848761e3a9928f86b381ff6cbfdaaca81080b487 (patch)
treedbc441857c3954b6257633d9a695629b46b224e9 /src/network
parent5fd9f87d34eeb7cf1237c943070eac3351303221 (diff)
downloadopenttd-848761e3a9928f86b381ff6cbfdaaca81080b487.tar.xz
(svn r22092) -Fix-ish (r22068): when you change a boolean to a enum, check specifically for a particular value
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_server.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}