(svn r10352) -Fix: the network did not request the newgrf names of newgrfs that it couldn't find; it only wanted to request the newgrf names of newgrfs that where available locally and than were called "<Unknown>".
authorrubidium
Wed, 27 Jun 2007 10:02:55 +0000
changeset 7085 8d461e0775fe
parent 7084 3a9673715c50
child 7086 de7e83fb1602
(svn r10352) -Fix: the network did not request the newgrf names of newgrfs that it couldn't find; it only wanted to request the newgrf names of newgrfs that where available locally and than were called "<Unknown>".
src/network/network_udp.cpp
--- a/src/network/network_udp.cpp	Tue Jun 26 22:29:52 2007 +0000
+++ b/src/network/network_udp.cpp	Wed Jun 27 10:02:55 2007 +0000
@@ -289,7 +289,7 @@
 
 		for (c = item->info.grfconfig; c != NULL; c = c->next) {
 			if (c->status == GCS_NOT_FOUND) item->info.compatible = false;
-			if (c->status == GCS_NOT_FOUND || strcmp(c->name, UNKNOWN_GRF_NAME_PLACEHOLDER) != 0) continue;
+ 			if (c->status != GCS_NOT_FOUND || strcmp(c->name, UNKNOWN_GRF_NAME_PLACEHOLDER) != 0) continue;
 			in_request[in_request_count] = c;
 			in_request_count++;
 		}