From 05c695a647a3637925d24e4062b0cd4adcd1c851 Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 24 Jun 2009 19:26:41 +0000 Subject: (svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile() --- src/yapf/yapf_road.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/yapf') diff --git a/src/yapf/yapf_road.cpp b/src/yapf/yapf_road.cpp index c14b5b484..be962857e 100644 --- a/src/yapf/yapf_road.cpp +++ b/src/yapf/yapf_road.cpp @@ -403,7 +403,7 @@ public: Node *n = Yapf().GetBestNode(); TileIndex depot_tile = n->m_segment_last_tile; assert(IsRoadDepotTile(depot_tile)); - Depot *ret = GetDepotByTile(depot_tile); + Depot *ret = Depot::GetByTile(depot_tile); return ret; } }; @@ -478,7 +478,7 @@ Depot *YapfFindNearestRoadDepot(const Vehicle *v) /* handle the case when our vehicle is already in the depot tile */ if (IsRoadDepotTile(tile)) { /* only what we need to return is the Depot* */ - return GetDepotByTile(tile); + return Depot::GetByTile(tile); } /* default is YAPF type 2 */ -- cgit v1.2.3-70-g09d2