summaryrefslogtreecommitdiff
path: root/src/waypoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r--src/waypoint.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp
index eeb3bcccf..bc7bf2975 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -33,16 +33,18 @@ void DrawWaypointSprite(int x, int y, int stat_id, RailType railtype)
void Waypoint::GetTileArea(TileArea *ta, StationType type) const
{
switch (type) {
- case STATION_BUOY:
case STATION_WAYPOINT:
+ *ta = this->train_station;
+ return;
+
+ case STATION_BUOY:
+ ta->tile = this->xy;
+ ta->w = 1;
+ ta->h = 1;
break;
default: NOT_REACHED();
}
-
- ta->tile = this->xy;
- ta->w = 1;
- ta->h = 1;
}
Waypoint::~Waypoint()