Changeset - r977:83e2b55d73ff
[Not reviewed]
master
0 1 0
darkvater - 20 years ago 2005-01-10 21:52:35
darkvater@openttd.org
(svn r1472) -Fix: correct error message for when trying to build a railroad station over a bus/truck/etc-station.
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
station_cmd.c
Show inline comments
 
@@ -598,6 +598,8 @@ static void DeleteStationIfEmpty(Station
 
	}
 
}
 

	
 
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
 
		// 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];
0 comments (0 inline, 0 general)