station.h
changeset 1368 9eeb0c02a0ee
parent 1330 5d76a0522a11
child 1424 38b76de179c9
--- a/station.h	Sun Feb 13 12:33:57 2005 +0000
+++ b/station.h	Sun Feb 13 21:51:47 2005 +0000
@@ -259,7 +259,11 @@
 int GetCustomStationsCount(enum StationClass sclass);
 
 RoadStop * GetRoadStopByTile(TileIndex tile, RoadStopType type);
-inline int GetRoadStopType(TileIndex tile);
+static inline int GetRoadStopType(TileIndex tile)
+{
+	return (_map5[tile] < 0x47) ? RS_TRUCK : RS_BUS;
+}
+
 uint GetNumRoadStops(const Station *st, RoadStopType type);
 RoadStop * GetPrimaryRoadStop(const Station *st, RoadStopType type);
 RoadStop * AllocateRoadStop( void );