Mercurial > hg > openttd
changeset 12129:d72c5f269889 draft
(svn r16545) -Cleanup: tunnels have been returning correct SlopeZ since r1
author | smatz <smatz@openttd.org> |
---|---|
date | Tue, 09 Jun 2009 20:04:46 +0000 |
parents | 6e43d1f1af83 |
children | 4d1083a76bb1 |
files | src/train_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3405,9 +3405,7 @@ byte middle_z = GetSlopeZ((v->x_pos & INV_TILE_SIZE_MASK) | HALF_TILE_SIZE, (v->y_pos & INV_TILE_SIZE_MASK) | HALF_TILE_SIZE); - /* For some reason tunnel tiles are always given as sloped :( - * But they are not sloped... */ - if (middle_z != v->z_pos && !IsTunnelTile(TileVirtXY(v->x_pos, v->y_pos))) { + if (middle_z != v->z_pos) { SetBit(v->flags, (middle_z > old_z) ? VRF_GOINGUP : VRF_GOINGDOWN); } }