mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-11 01:49:50 +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;
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user