diff options
author | michi_cc <michi_cc@openttd.org> | 2008-09-09 19:21:22 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2008-09-09 19:21:22 +0000 |
commit | 1b7de43e8081b39cf8bd9250b5f675917229dd4b (patch) | |
tree | d92d586fd462cda23ebf65398113df03d48093f9 /src/yapf/yapf_node_rail.hpp | |
parent | fa3f2ae035a2ad1bcb83b6bbc1e05b21911b5844 (diff) | |
download | openttd-1b7de43e8081b39cf8bd9250b5f675917229dd4b.tar.xz |
(svn r14286) -Fix [FS#2265]: If a change of conventional/electric rail coincided with the start of a station platform, stale reservations could be left behind.
Diffstat (limited to 'src/yapf/yapf_node_rail.hpp')
-rw-r--r-- | src/yapf/yapf_node_rail.hpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/yapf/yapf_node_rail.hpp b/src/yapf/yapf_node_rail.hpp index 192bce2ed..0d7e5d4d9 100644 --- a/src/yapf/yapf_node_rail.hpp +++ b/src/yapf/yapf_node_rail.hpp @@ -193,18 +193,6 @@ struct CYapfRailNodeT cur = ft.m_new_tile; assert(KillFirstBit(ft.m_new_td_bits) == TRACKDIR_BIT_NONE); cur_td = FindFirstTrackdir(ft.m_new_td_bits); - - /* Did we skip tiles because of a station? */ - if (ft.m_is_station && ft.m_tiles_skipped > 0) { - TileIndexDiff diff = TileOffsByDiagDir(TrackdirToExitdir(cur_td)); - TileIndex tile = TILE_ADD(cur, -diff * ft.m_tiles_skipped); - - /* Call func for all tiles in between. */ - for (int i = 0; i < ft.m_tiles_skipped; ++i) { - if (!(obj.*func)(tile, cur_td)) return false; - tile = TILE_ADD(tile, diff); - } - } } return (obj.*func)(cur, cur_td); |