(svn r1872) -Fix: Fixed an inline problem which caused MSVC6 to not compile :/
authorcelestar
Sun, 13 Feb 2005 21:51:47 +0000
changeset 1368 228a2fc009e8
parent 1367 4bdaa4cf0328
child 1369 fb22b2cc27e3
(svn r1872) -Fix: Fixed an inline problem which caused MSVC6 to not compile :/
station.h
station_cmd.c
--- 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) {