summaryrefslogtreecommitdiff
path: root/src/yapf/yapf_road.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-06-24 19:26:41 +0000
committersmatz <smatz@openttd.org>2009-06-24 19:26:41 +0000
commit05c695a647a3637925d24e4062b0cd4adcd1c851 (patch)
tree220c68f6314badb79ae16a3af4e818e1ed2e52a5 /src/yapf/yapf_road.cpp
parentfd4a9a9106256a1029995f76e7bdbc8cefdbb84a (diff)
downloadopenttd-05c695a647a3637925d24e4062b0cd4adcd1c851.tar.xz
(svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile()
Diffstat (limited to 'src/yapf/yapf_road.cpp')
-rw-r--r--src/yapf/yapf_road.cpp4
1 files changed, 2 insertions, 2 deletions
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 */