(svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile()

This commit is contained in:
smatz
2009-06-24 19:26:41 +00:00
parent fd4a9a9106
commit 05c695a647
13 changed files with 21 additions and 21 deletions

View File

@@ -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 */