summaryrefslogtreecommitdiff
path: root/src/roadstop_base.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-06-26 10:45:20 +0000
committersmatz <smatz@openttd.org>2009-06-26 10:45:20 +0000
commit90554ee39091c98cb89b0c9a90b529564a82ff38 (patch)
treee599b70959074506c19535ce47a5a9d978f39507 /src/roadstop_base.h
parentf2e55319dd165f57e008e0fac355ce294fc98905 (diff)
downloadopenttd-90554ee39091c98cb89b0c9a90b529564a82ff38.tar.xz
(svn r16662) -Codechange: replace GetRoadStopByTile() by RoadStop::GetByTile()
Diffstat (limited to 'src/roadstop_base.h')
-rw-r--r--src/roadstop_base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/roadstop_base.h b/src/roadstop_base.h
index 6a18f5cbe..695ada14a 100644
--- a/src/roadstop_base.h
+++ b/src/roadstop_base.h
@@ -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)