From b5b348bdcee54a6220c7a9bad7c65464bc70c385 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). --- rail_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rail_cmd.c') diff --git a/rail_cmd.c b/rail_cmd.c index 3c79ff0d9..a89717d78 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -130,7 +130,7 @@ static bool CheckTrackCombination(TileIndex tile, TrackBits to_build, uint flags } -static const TrackBits _valid_tileh_slopes[][15] = { +const TrackBits _valid_tileh_slopes[2][15] = { // set of normal ones { -- cgit v1.2.3-54-g00ecf