From fc32e2019561f398c193f6e510e8482797303021 Mon Sep 17 00:00:00 2001 From: celestar Date: Mon, 20 Mar 2006 16:43:48 +0000 Subject: (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). --- tile.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tile.h') 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); -- cgit v1.2.3-54-g00ecf