(svn r4012) -Backport from trunk (3992, 3995): 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.
This commit is contained in:
celestar
2006-03-22 10:32:07 +00:00
parent 6e029fe97d
commit c05d3dd558
4 changed files with 50 additions and 55 deletions

1
tile.h
View File

@@ -47,6 +47,7 @@ typedef enum DiagonalDirections {
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);