(svn r16860) -Codechange: introduce a helper to assign a station spec to Waypoints

This commit is contained in:
rubidium
2009-07-17 20:21:24 +00:00
parent 84df3ba2b4
commit 06ea681b5f
4 changed files with 23 additions and 26 deletions

View File

@@ -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)