diff options
author | rubidium <rubidium@openttd.org> | 2009-07-17 19:44:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-17 19:44:13 +0000 |
commit | 84df3ba2b40054b751fd9d39c3a9b3a7589422b8 (patch) | |
tree | 81e3445d33e5b22e9d220819eeb5ab0e608495a2 /src/station.cpp | |
parent | 869fb4fa788aae6369030a14ff083b524ebb36f5 (diff) | |
download | openttd-84df3ba2b40054b751fd9d39c3a9b3a7589422b8.tar.xz |
(svn r16859) -Codechange: split the Station struct into two so parts of it can be reused for Waypoints.
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 |