mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r19274) -Codechange: CmdBuildAirport() returns the 'too spread out' error via CommandCost, if needed.
This commit is contained in:
parent
a4927dcd21
commit
fee81aedcb
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user