Changeset - r14682:47bb980472e2
[Not reviewed]
master
0 1 0
alberth - 15 years ago 2010-02-27 14:03:06
alberth@openttd.org
(svn r19274) -Codechange: CmdBuildAirport() returns the 'too spread out' error via CommandCost, if needed.
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -2073,8 +2073,7 @@ CommandCost CmdBuildAirport(TileIndex ti
 
	int h = as->size_y;
 

	
 
	if (w > _settings_game.station.station_spread || h > _settings_game.station.station_spread) {
 
		_error_message = STR_ERROR_STATION_TOO_SPREAD_OUT;
 
		return CMD_ERROR;
 
		return_cmd_error(STR_ERROR_STATION_TOO_SPREAD_OUT);
 
	}
 

	
 
	CommandCost cost = CheckFlatLand(TileArea(tile, w, h), flags);
0 comments (0 inline, 0 general)