diff src/station_cmd.cpp @ 7055:1511234872f5 draft

(svn r10320) -Fix [FS#278]: one could only build a limited number of stations before one had to rename them.
author rubidium <rubidium@openttd.org>
date Mon, 25 Jun 2007 10:22:48 +0000 (2007-06-25)
parents 4b344122f60d
children 1576a93e83c6
line wrap: on
line diff
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -285,11 +285,7 @@
 	}
 
 	tmp = free_names & ((1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 6) | (1 << 7) | (1 << 12) | (1 << 26) | (1 << 27) | (1 << 28) | (1 << 29) | (1 << 30));
-	if (tmp == 0) {
-		_error_message = STR_3007_TOO_MANY_STATIONS_LOADING;
-		return false;
-	}
-	found = FindFirstBit(tmp);
+	found = (tmp == 0) ? M(STR_SV_STNAME_FALLBACK) : FindFirstBit(tmp);
 
 done:
 	st->string_id = found + STR_SV_STNAME;