summaryrefslogtreecommitdiff
path: root/tile.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-03-20 16:43:48 +0000
committercelestar <celestar@openttd.org>2006-03-20 16:43:48 +0000
commitfc32e2019561f398c193f6e510e8482797303021 (patch)
treecc5045ef1db49cd6bee44904b6462f9adfd8fd86 /tile.h
parent7bedab1a401c07ae67035d396344ef456945f993 (diff)
downloadopenttd-fc32e2019561f398c193f6e510e8482797303021.tar.xz
(svn r3992) -Fix: Rewrote the code to determine whether a rail-tile can be terraformed.
Fixes a bug where you could terraform a tunnel (fixed by r3228, but reverted that one) Fixes a bug introduced by r3228 which allowed steep rail tiles resulting in ... unwanted effects such as display artifacts. That means the terraform feature should not work as intended; it also uses _valid_tileh_slopes to determine valid configurations instead of hand-brewn stuff. TODO: _terraform_err_tile and similar TileIndices should have INVALID_TILE as "unused", not 0. (0 is a valid tile).
Diffstat (limited to 'tile.h')
-rw-r--r--tile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tile.h b/tile.h
index af6c0e1f1..e3a0d45d6 100644
--- a/tile.h
+++ b/tile.h
@@ -24,6 +24,7 @@ typedef enum TileTypes {
void SetMapExtraBits(TileIndex tile, byte flags);
uint GetMapExtraBits(TileIndex tile);
+uint GetTileh(uint n, uint w, uint e, uint s, uint *h);
uint GetTileSlope(TileIndex tile, uint *h);
uint GetTileZ(TileIndex tile);