summaryrefslogtreecommitdiff
path: root/src/depot_base.h
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/depot_base.h
parentfd4a9a9106256a1029995f76e7bdbc8cefdbb84a (diff)
downloadopenttd-05c695a647a3637925d24e4062b0cd4adcd1c851.tar.xz
(svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile()
Diffstat (limited to 'src/depot_base.h')
-rw-r--r--src/depot_base.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depot_base.h b/src/depot_base.h
index f8c7270e8..9fa38fea7 100644
--- a/src/depot_base.h
+++ b/src/depot_base.h
@@ -19,9 +19,9 @@ struct Depot : DepotPool::PoolItem<&_depot_pool> {
Depot(TileIndex xy = INVALID_TILE) : xy(xy) {}
~Depot();
-};
-Depot *GetDepotByTile(TileIndex tile);
+ static Depot *GetByTile(TileIndex tile);
+};
#define FOR_ALL_DEPOTS_FROM(var, start) FOR_ALL_ITEMS_FROM(Depot, depot_index, var, start)
#define FOR_ALL_DEPOTS(var) FOR_ALL_DEPOTS_FROM(var, 0)