From 84df3ba2b40054b751fd9d39c3a9b3a7589422b8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 17 Jul 2009 19:44:13 +0000 Subject: (svn r16859) -Codechange: split the Station struct into two so parts of it can be reused for Waypoints. --- src/station.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/station.cpp') diff --git a/src/station.cpp b/src/station.cpp index 8cb1a8cc4..6b583a07c 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -44,6 +44,11 @@ Station::Station(TileIndex tile) : /* this->random_bits is set in Station::AddFacility() */ } +/* static */ BaseStation *BaseStation::GetByTile(TileIndex tile) +{ + return Station::GetByTile(tile); +} + /** * Clean up a station by clearing vehicle orders and invalidating windows. * Aircraft-Hangar orders need special treatment here, as the hangars are -- cgit v1.2.3-54-g00ecf