summaryrefslogtreecommitdiff
path: root/src/yapf/yapf_costrail.hpp
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-25 11:36:19 +0000
committertron <tron@openttd.org>2007-02-25 11:36:19 +0000
commitc0ec367e9ba15929dee027670702e93eac02fab2 (patch)
tree7356de7ae644522ac46c52158203c96f0a69cb23 /src/yapf/yapf_costrail.hpp
parent05c6e8f883e06059daa9ea777f8181ff0f2ab8ef (diff)
downloadopenttd-c0ec367e9ba15929dee027670702e93eac02fab2.tar.xz
(svn r8899) -Fix
Remove the unused second parameter from GetTileRailType()
Diffstat (limited to 'src/yapf/yapf_costrail.hpp')
-rw-r--r--src/yapf/yapf_costrail.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yapf/yapf_costrail.hpp b/src/yapf/yapf_costrail.hpp
index 4335c8a5b..9a37b28e5 100644
--- a/src/yapf/yapf_costrail.hpp
+++ b/src/yapf/yapf_costrail.hpp
@@ -192,7 +192,7 @@ public:
Trackdir trackdir = n.m_key.m_td;
TileType tile_type = GetTileType(tile);
- RailType rail_type = GetTileRailType(tile, TrackdirToTrack(trackdir));
+ RailType rail_type = GetTileRailType(tile);
bool target_seen = Yapf().PfDetectDestination(tile, trackdir);
@@ -254,7 +254,7 @@ public:
// if tail type changes, finish segment (cached segment can't contain more rail types)
{
- RailType new_rail_type = GetTileRailType(F.m_new_tile, TrackdirToTrack(FindFirstTrackdir(F.m_new_td_bits)));
+ RailType new_rail_type = GetTileRailType(F.m_new_tile);
if (new_rail_type != rail_type) {
break;
}