(svn r19274) -Codechange: CmdBuildAirport() returns the 'too spread out' error via CommandCost, if needed.

This commit is contained in:
alberth
2010-02-27 14:03:06 +00:00
parent 9f437abd40
commit 24762bcfce

View File

@@ -2073,8 +2073,7 @@ CommandCost CmdBuildAirport(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
int h = as->size_y; int h = as->size_y;
if (w > _settings_game.station.station_spread || h > _settings_game.station.station_spread) { if (w > _settings_game.station.station_spread || h > _settings_game.station.station_spread) {
_error_message = STR_ERROR_STATION_TOO_SPREAD_OUT; return_cmd_error(STR_ERROR_STATION_TOO_SPREAD_OUT);
return CMD_ERROR;
} }
CommandCost cost = CheckFlatLand(TileArea(tile, w, h), flags); CommandCost cost = CheckFlatLand(TileArea(tile, w, h), flags);