(svn r12419) -Cleanup: of the internal road-piece building and removing.
This commit is contained in:
@@ -100,6 +100,17 @@ static inline RoadBits RotateRoadBits(RoadBits r, DiagDirDiff rot)
|
||||
return r;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if we've got a straight road
|
||||
*
|
||||
* @param r The given RoadBits
|
||||
* @return true if we've got a straight road
|
||||
*/
|
||||
static inline bool IsStraightRoad(RoadBits r)
|
||||
{
|
||||
return (r == ROAD_X || r == ROAD_Y);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the road-part which belongs to the given DiagDirection
|
||||
*
|
||||
|
Reference in New Issue
Block a user