summaryrefslogtreecommitdiff
path: root/src/tile_map.h
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/tile_map.h
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/tile_map.h')
-rw-r--r--src/tile_map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tile_map.h b/src/tile_map.h
index f9c7a2ac9..98863eb59 100644
--- a/src/tile_map.h
+++ b/src/tile_map.h
@@ -247,6 +247,8 @@ Slope GetTileSlope(TileIndex tile, int *h = NULL);
int GetTileZ(TileIndex tile);
int GetTileMaxZ(TileIndex tile);
+bool IsTileFlat(TileIndex tile, int *h = NULL);
+
/**
* Return the slope of a given tile
* @param tile Tile to compute slope of