--- 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 );
--- a/station_cmd.c Sun Feb 13 12:33:57 2005 +0000
+++ b/station_cmd.c Sun Feb 13 21:51:47 2005 +0000
@@ -90,11 +90,6 @@
road_stop->station = index;
}
-inline int GetRoadStopType(TileIndex tile)
-{
- return (_map5[tile] < 0x47) ? RS_TRUCK : RS_BUS;
-}
-
RoadStop * GetPrimaryRoadStop(const Station *st, RoadStopType type)
{
switch (type) {