diff options
author | darkvater <darkvater@openttd.org> | 2005-01-10 21:52:35 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2005-01-10 21:52:35 +0000 |
commit | 70f99214235bbf1840df3677bedb1809e2130eb2 (patch) | |
tree | 0e6c8196a5e9262701b3e7e034b8499ade66b814 | |
parent | 02e020c05e505ec903710ec04c964868446f2a3b (diff) | |
download | openttd-70f99214235bbf1840df3677bedb1809e2130eb2.tar.xz |
(svn r1472) -Fix: correct error message for when trying to build a railroad station over a bus/truck/etc-station.
-rw-r--r-- | station_cmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c index 74827a4e6..6ed26f585 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -598,6 +598,8 @@ static void DeleteStationIfEmpty(Station *st) { } } +static int32 ClearTile_Station(uint tile, byte flags); + // Tries to clear the given area. Returns the cost in case of success. // Or an error code if it failed. int32 CheckFlatLandBelow(uint tile, uint w, uint h, uint flags, uint invalid_dirs, int *station) @@ -647,7 +649,7 @@ int32 CheckFlatLandBelow(uint tile, uint w, uint h, uint flags, uint invalid_dir // on exactly that station. if ( (station != NULL) && IS_TILETYPE(tile_cur, MP_STATION)) { if (_map5[tile_cur] >= 8) { - _error_message = STR_0007_FLAT_LAND_REQUIRED; + _error_message = ClearTile_Station(tile_cur, DC_AUTO); // get error message return CMD_ERROR; } else { int st = _map2[tile_cur]; |