summaryrefslogtreecommitdiff
path: root/src/pathfinder/yapf
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-02 14:41:04 +0000
committerrubidium <rubidium@openttd.org>2009-12-02 14:41:04 +0000
commita1e28925e3c974a3c34a609737677ca072c559e1 (patch)
treed860a470be11edcd7eabdbe42134c584322251ee /src/pathfinder/yapf
parentf67c265c6f5c88d5f9d18a831da5b65329169712 (diff)
downloadopenttd-a1e28925e3c974a3c34a609737677ca072c559e1.tar.xz
(svn r18375) -Codechange: use Station::GetTileArea to get the tile area for CalcClosestStationTile
Diffstat (limited to 'src/pathfinder/yapf')
-rw-r--r--src/pathfinder/yapf/yapf_destrail.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfinder/yapf/yapf_destrail.hpp b/src/pathfinder/yapf/yapf_destrail.hpp
index 5a39b92b4..7953baf25 100644
--- a/src/pathfinder/yapf/yapf_destrail.hpp
+++ b/src/pathfinder/yapf/yapf_destrail.hpp
@@ -137,7 +137,7 @@ public:
switch (v->current_order.GetType()) {
case OT_GOTO_STATION:
case OT_GOTO_WAYPOINT:
- m_destTile = CalcClosestStationTile(v->current_order.GetDestination(), v->tile);
+ m_destTile = CalcClosestStationTile(v->current_order.GetDestination(), v->tile, STATION_RAIL);
m_dest_station_id = v->current_order.GetDestination();
m_destTrackdirs = INVALID_TRACKDIR_BIT;
break;