# HG changeset patch # User alberth # Date 2010-02-27 14:03:06 # Node ID 47bb980472e2a1cbdb459c99f01ada08c38edecc # Parent 3d2babfe43270d05eae1577c04d7cfd9424bd1f5 (svn r19274) -Codechange: CmdBuildAirport() returns the 'too spread out' error via CommandCost, if needed. diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -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);