(svn r12419) -Cleanup: of the internal road-piece building and removing.

This commit is contained in:
skidd13
2008-03-25 18:59:25 +00:00
parent 0bf22d264a
commit 066e6dedfd
3 changed files with 45 additions and 26 deletions

View File

@@ -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
*