(svn r16662) -Codechange: replace GetRoadStopByTile() by RoadStop::GetByTile()

This commit is contained in:
smatz
2009-06-26 10:45:20 +00:00
parent d5e58990f8
commit 9d63b88b22
4 changed files with 28 additions and 19 deletions

View File

@@ -114,6 +114,8 @@ struct RoadStop : RoadStopPool::PoolItem<&_roadstop_pool> {
}
RoadStop *GetNextRoadStop(const struct RoadVehicle *v) const;
static RoadStop *GetByTile(TileIndex tile, RoadStopType type);
};
#define FOR_ALL_ROADSTOPS_FROM(var, start) FOR_ALL_ITEMS_FROM(RoadStop, roadstop_index, var, start)