(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 2023f59541
commit 82eebc20c0
3 changed files with 45 additions and 26 deletions

View File

@@ -65,6 +65,12 @@ static inline RoadBits GetRoadBits(TileIndex t, RoadType rt)
}
}
/**
* Get all set RoadBits on the given tile
*
* @param tile The tile from which we want to get the RoadBits
* @return all set RoadBits of the tile
*/
static inline RoadBits GetAllRoadBits(TileIndex tile)
{
return GetRoadBits(tile, ROADTYPE_ROAD) | GetRoadBits(tile, ROADTYPE_TRAM) | GetRoadBits(tile, ROADTYPE_HWAY);