summaryrefslogtreecommitdiff
path: root/src/waypoint.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-17 20:21:24 +0000
committerrubidium <rubidium@openttd.org>2009-07-17 20:21:24 +0000
commit06ea681b5fa361b34000351bcd248ee46c2a939e (patch)
treebcda240773c51bf9617fea6bf60e11631c74e150 /src/waypoint.h
parent84df3ba2b40054b751fd9d39c3a9b3a7589422b8 (diff)
downloadopenttd-06ea681b5fa361b34000351bcd248ee46c2a939e.tar.xz
(svn r16860) -Codechange: introduce a helper to assign a station spec to Waypoints
Diffstat (limited to 'src/waypoint.h')
-rw-r--r--src/waypoint.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/waypoint.h b/src/waypoint.h
index 18fc2a33c..6e3e24105 100644
--- a/src/waypoint.h
+++ b/src/waypoint.h
@@ -36,6 +36,8 @@ struct Waypoint : WaypointPool::PoolItem<&_waypoint_pool> {
~Waypoint();
void UpdateVirtCoord();
+
+ void AssignStationSpec(uint index);
};
#define FOR_ALL_WAYPOINTS_FROM(var, start) FOR_ALL_ITEMS_FROM(Waypoint, waypoint_index, var, start)