summaryrefslogtreecommitdiff
path: root/src/unmovable_cmd.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-02-20 18:12:56 +0000
committerterkhen <terkhen@openttd.org>2010-02-20 18:12:56 +0000
commitd1cce945257dec6f2f498dbd03854793f95b6019 (patch)
treea3026449193e4e122cee2be71a18ff130e7ad492 /src/unmovable_cmd.cpp
parent6b849b5483fdd4fd2a885f23615bf410bf9012e7 (diff)
downloadopenttd-d1cce945257dec6f2f498dbd03854793f95b6019.tar.xz
(svn r19171) -Codechange: Split CheckFlatLandBelow into different functions.
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r--src/unmovable_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp
index 943c0de23..55fe0a4c5 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(TileArea tile_area, DoCommandFlag flags, uint invalid_dirs, StationID *station, bool check_clear = true, RailType rt = INVALID_RAILTYPE);
+extern CommandCost CheckFlatLand(TileArea tile_area, DoCommandFlag flags);
/** 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(TileArea(tile, 2, 2), flags, 0, NULL);
+ cost = CheckFlatLand(TileArea(tile, 2, 2), flags);
if (cost.Failed()) return cost;
if (c->location_of_HQ != INVALID_TILE) { // Moving HQ