Changeset - r1368:b6cf1a609932
[Not reviewed]
master
0 2 0
celestar - 20 years ago 2005-02-13 21:51:47
celestar@openttd.org
(svn r1872) -Fix: Fixed an inline problem which caused MSVC6 to not compile :/
2 files changed with 5 insertions and 6 deletions:
0 comments (0 inline, 0 general)
station.h
Show inline comments
 
@@ -259,7 +259,11 @@ uint32 GetCustomStationRelocation(struct
 
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 );
station_cmd.c
Show inline comments
 
@@ -90,11 +90,6 @@ static void InitializeRoadStop(RoadStop 
 
	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) {
0 comments (0 inline, 0 general)