diff options
author | rubidium <rubidium@openttd.org> | 2009-07-17 21:06:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-17 21:06:06 +0000 |
commit | 4e5af51d1f56bc303dde2290a12cc219403b9c66 (patch) | |
tree | 216e244c8b6fcf4ca800797b064092436bcf98f0 /src/station.cpp | |
parent | d8f16ea1994ecebdb153c58350b3a044a6d43e57 (diff) | |
download | openttd-4e5af51d1f56bc303dde2290a12cc219403b9c66.tar.xz |
(svn r16864) -Codechange: make Waypoints a subclass of BaseStation.
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/station.cpp b/src/station.cpp index 641e77c91..ec57d6e04 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -52,6 +52,7 @@ Station::Station(TileIndex tile) : /* static */ BaseStation *BaseStation::GetByTile(TileIndex tile) { + if (IsRailWaypointTile(tile)) return Waypoint::GetByTile(tile); return Station::GetByTile(tile); } |