summaryrefslogtreecommitdiff
path: root/src/waypoint.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-21 11:11:05 +0000
committerrubidium <rubidium@openttd.org>2009-07-21 11:11:05 +0000
commit43eda3dfbf45a8f5060aaca3da9b8cad59a1aad8 (patch)
treef679af938cac59410e256882dfa0f5845b47b71e /src/waypoint.cpp
parentc63338cd8158fa8a60afe74395d4f5e659317581 (diff)
downloadopenttd-43eda3dfbf45a8f5060aaca3da9b8cad59a1aad8.tar.xz
(svn r16896) -Codechange: make station spec allocation and station animation functions work for both stations and waypoints
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r--src/waypoint.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp
index 9e8e7da13..70ec5c3f5 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -44,6 +44,21 @@ 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:
+ break;
+
+ default: NOT_REACHED();
+ }
+
+ ta->tile = this->xy;
+ ta->w = 1;
+ ta->h = 1;
+}
+
Waypoint::~Waypoint()
{
if (CleaningPool()) return;