diff options
author | frosch <frosch@openttd.org> | 2011-09-25 13:35:17 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-09-25 13:35:17 +0000 |
commit | 8d5c1479f417dc8a79997a6c4a1b357fb30a9411 (patch) | |
tree | 05f340e63c07d081cb44f5a7b6424b874e812057 /src/object_cmd.cpp | |
parent | fa1f8b309e13aa2872f6c520c0bcb121e559eb6b (diff) | |
download | openttd-8d5c1479f417dc8a79997a6c4a1b357fb30a9411.tar.xz |
(svn r22960) -Feature: Allow depots, standard roadstops and airports on steep slopes.
Diffstat (limited to 'src/object_cmd.cpp')
-rw-r--r-- | src/object_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp index c81b212b7..7ca5a5949 100644 --- a/src/object_cmd.cpp +++ b/src/object_cmd.cpp @@ -168,7 +168,7 @@ void UpdateObjectColours(const Company *c) } } -extern CommandCost CheckBuildableTile(TileIndex tile, uint invalid_dirs, int &allowed_z, bool check_bridge); +extern CommandCost CheckBuildableTile(TileIndex tile, uint invalid_dirs, int &allowed_z, bool allow_steep, bool check_bridge); static CommandCost ClearTile_Object(TileIndex tile, DoCommandFlag flags); /** @@ -238,7 +238,7 @@ CommandCost CmdBuildObject(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 } if (callback == CALLBACK_FAILED) { - cost.AddCost(CheckBuildableTile(t, 0, allowed_z, false)); + cost.AddCost(CheckBuildableTile(t, 0, allowed_z, false, false)); } else if (callback != 0) { /* The meaning of bit 10 is inverted in the result of this callback. */ return GetErrorMessageFromLocationCallbackResult(ToggleBit(callback, 10), spec->grf_prop.grffile->grfid, STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION); |