Fix increased number of NewGRFs support.
Improve error handling if multiplayer limit is exceeded.
This commit is contained in:
@@ -1521,7 +1521,7 @@ private:
|
||||
if (!HasBit((*list)->flags, GCF_STATIC)) count++;
|
||||
}
|
||||
if (entry == NULL) entry = list;
|
||||
if (count >= NETWORK_MAX_GRF_COUNT) {
|
||||
if (count >= MAX_NEWGRFS) {
|
||||
ShowErrorMessage(STR_NEWGRF_TOO_MANY_NEWGRFS, INVALID_STRING_ID, WL_INFO);
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user