(svn r12390) -Fix [FS#1851]: trams failing to turn on bridge heads/tunnel entrances.

This commit is contained in:
rubidium
2008-03-22 10:56:08 +00:00
parent 5d747802f2
commit f0538b4b62
4 changed files with 26 additions and 5 deletions

View File

@@ -114,6 +114,20 @@ static inline RoadBits DiagDirToRoadBits(DiagDirection d)
return (RoadBits)(ROAD_NW << (3 ^ d));
}
/**
* Create the road-part which belongs to the given Axis
*
* This function returns a RoadBits value which belongs to
* the given Axis.
*
* @param a The Axis
* @return The result RoadBits which the selected road-part set
*/
static inline RoadBits AxisToRoadBits(Axis a)
{
return a == AXIS_X ? ROAD_X : ROAD_Y;
}
/**
* Finds out, whether given player has all given RoadTypes available
* @param PlayerID ID of player