(svn r22092) -Fix-ish (r22068): when you change a boolean to a enum, check specifically for a particular value

This commit is contained in:
rubidium 2011-02-17 18:45:44 +00:00
parent 5fd9f87d34
commit 848761e3a9
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}