From a1e28925e3c974a3c34a609737677ca072c559e1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 2 Dec 2009 14:41:04 +0000 Subject: (svn r18375) -Codechange: use Station::GetTileArea to get the tile area for CalcClosestStationTile --- src/pathfinder/yapf/yapf_destrail.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pathfinder/yapf') 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; -- cgit v1.2.3-70-g09d2