diff options
author | terkhen <terkhen@openttd.org> | 2010-02-20 17:56:05 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-02-20 17:56:05 +0000 |
commit | 6b849b5483fdd4fd2a885f23615bf410bf9012e7 (patch) | |
tree | b4cf4daaa4ab22e76a5ed8553792ff99f3076cbe /src/unmovable_cmd.cpp | |
parent | 8a4f1133d892a72fc2d4f9858c8aeb1731b2084e (diff) | |
download | openttd-6b849b5483fdd4fd2a885f23615bf410bf9012e7.tar.xz |
(svn r19170) -Codechange: Make CheckFlatLandBelow use TileArea.
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r-- | src/unmovable_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp index 6f2359d28..943c0de23 100644 --- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -98,7 +98,7 @@ void UpdateCompanyHQ(Company *c, uint score) MarkTileDirtyByTile(tile + TileDiffXY(1, 1)); } -extern CommandCost CheckFlatLandBelow(TileIndex tile, uint w, uint h, DoCommandFlag flags, uint invalid_dirs, StationID *station, bool check_clear = true, RailType rt = INVALID_RAILTYPE); +extern CommandCost CheckFlatLandBelow(TileArea tile_area, DoCommandFlag flags, uint invalid_dirs, StationID *station, bool check_clear = true, RailType rt = INVALID_RAILTYPE); /** Build or relocate the HQ. This depends if the HQ is already built or not * @param tile tile where the HQ will be built or relocated to @@ -113,7 +113,7 @@ CommandCost CmdBuildCompanyHQ(TileIndex tile, DoCommandFlag flags, uint32 p1, ui Company *c = Company::Get(_current_company); CommandCost cost(EXPENSES_PROPERTY); - cost = CheckFlatLandBelow(tile, 2, 2, flags, 0, NULL); + cost = CheckFlatLandBelow(TileArea(tile, 2, 2), flags, 0, NULL); if (cost.Failed()) return cost; if (c->location_of_HQ != INVALID_TILE) { // Moving HQ |