summaryrefslogtreecommitdiff
path: root/src/depot.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/depot.cpp
parentfd4a9a9106256a1029995f76e7bdbc8cefdbb84a (diff)
downloadopenttd-05c695a647a3637925d24e4062b0cd4adcd1c851.tar.xz
(svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile()
Diffstat (limited to 'src/depot.cpp')
-rw-r--r--src/depot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depot.cpp b/src/depot.cpp
index d241caf72..0f21dc710 100644
--- a/src/depot.cpp
+++ b/src/depot.cpp
@@ -17,10 +17,10 @@ INSTANTIATE_POOL_METHODS(Depot)
/**
* Gets a depot from a tile
- *
+ * @param tile tile with depot
* @return Returns the depot if the tile had a depot, else it returns NULL
*/
-Depot *GetDepotByTile(TileIndex tile)
+/* static */ Depot *Depot::GetByTile(TileIndex tile)
{
/* A ship depot is multiple tiles. The north most tile is
* always the ->xy tile, so make sure we always look for