station_cmd.c
changeset 977 ab88e042b39d
parent 972 63454e7fc8b2
child 1012 d8e90d2c2d32
--- a/station_cmd.c	Mon Jan 10 20:53:18 2005 +0000
+++ b/station_cmd.c	Mon Jan 10 21:52:35 2005 +0000
@@ -598,6 +598,8 @@
 	}
 }
 
+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 @@
 		// 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];