diff options
author | rubidium <rubidium@openttd.org> | 2007-06-25 10:22:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-25 10:22:48 +0000 |
commit | abfbba139e7f1b138ea11da83eb145e24f0ad350 (patch) | |
tree | 64ef685987ac780df5d0ab0f039691ff9cd13bf0 /src/station_cmd.cpp | |
parent | 7c3ce5fc157975e32b7a7a8524d4b8d5097a3e56 (diff) | |
download | openttd-abfbba139e7f1b138ea11da83eb145e24f0ad350.tar.xz |
(svn r10320) -Fix [FS#278]: one could only build a limited number of stations before one had to rename them.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 933c89eae..c26e218d1 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -285,11 +285,7 @@ static bool GenerateStationName(Station *st, TileIndex tile, int flag) } 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; |