summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-10-12 22:07:58 +0000
committerzuu <zuu@openttd.org>2013-10-12 22:07:58 +0000
commitdfb566331390a87f01d048f57ed6d51b2f329d65 (patch)
tree76bcf6959e2acb63051f9f74a80b8154b95bc824 /src/industry_cmd.cpp
parentb35b8aa5bb38f9e47ca04ccd9302dd82546de0cd (diff)
downloadopenttd-dfb566331390a87f01d048f57ed6d51b2f329d65.tar.xz
(svn r25849) -Codechange: Introduce IsTileFlat to not compute full slope information for situations when we only want to know if a tile is flat or not (cirdan, LordAro)
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index c29a00820..7841ce84c 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1386,7 +1386,7 @@ static CommandCost CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTil
if (gfx == GFX_WATERTILE_SPECIALCHECK) {
if (!IsTileType(cur_tile, MP_WATER) ||
- GetTileSlope(cur_tile) != SLOPE_FLAT) {
+ !IsTileFlat(cur_tile)) {
return_cmd_error(STR_ERROR_SITE_UNSUITABLE);
}
} else {