diff options
author | celestar <celestar@openttd.org> | 2006-03-20 16:43:48 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-03-20 16:43:48 +0000 |
commit | b5b348bdcee54a6220c7a9bad7c65464bc70c385 (patch) | |
tree | cc5045ef1db49cd6bee44904b6462f9adfd8fd86 /rail_cmd.c | |
parent | f91b027bea3af341ec2713c30b85526a56725561 (diff) | |
download | openttd-b5b348bdcee54a6220c7a9bad7c65464bc70c385.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 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |