mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r22092) -Fix-ish (r22068): when you change a boolean to a enum, check specifically for a particular value
This commit is contained in:
parent
5fd9f87d34
commit
848761e3a9
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue