mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r1872) -Fix: Fixed an inline problem which caused MSVC6 to not compile :/
This commit is contained in:
parent
9e847075fa
commit
d449145799
|
@ -259,7 +259,11 @@ uint32 GetCustomStationRelocation(struct StationSpec *spec, struct Station *stat
|
|||
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 );
|
||||
|
|
|
@ -90,11 +90,6 @@ static void InitializeRoadStop(RoadStop *road_stop, RoadStop *previous, TileInde
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue