diff options
author | smatz <smatz@openttd.org> | 2009-06-24 19:26:41 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-06-24 19:26:41 +0000 |
commit | 05c695a647a3637925d24e4062b0cd4adcd1c851 (patch) | |
tree | 220c68f6314badb79ae16a3af4e818e1ed2e52a5 /src/depot_gui.cpp | |
parent | fd4a9a9106256a1029995f76e7bdbc8cefdbb84a (diff) | |
download | openttd-05c695a647a3637925d24e4062b0cd4adcd1c851.tar.xz |
(svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile()
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index ed415d6c9..a2d4d5c66 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -341,7 +341,7 @@ struct DepotWindow : Window { if (this->type == VEH_AIRCRAFT) { SetDParam(0, GetStationIndex(tile)); // Airport name } else { - Depot *depot = GetDepotByTile(tile); + Depot *depot = Depot::GetByTile(tile); assert(depot != NULL); SetDParam(0, depot->town_index); @@ -815,7 +815,7 @@ struct DepotWindow : Window { TileIndex tile = this->window_number; byte vehtype = this->type; - SetDParam(0, (vehtype == VEH_AIRCRAFT) ? GetStationIndex(tile) : GetDepotByTile(tile)->town_index); + SetDParam(0, (vehtype == VEH_AIRCRAFT) ? GetStationIndex(tile) : Depot::GetByTile(tile)->town_index); ShowQuery( confirm_captions[vehtype], STR_DEPOT_SELL_CONFIRMATION_TEXT, |