(svn r20097) -Codechange: Share constant bitset of safe level crossing slopes.

This commit is contained in:
alberth
2010-07-09 12:14:02 +00:00
parent 72bfda4634
commit 82fc340a0a
3 changed files with 6 additions and 10 deletions

View File

@@ -52,11 +52,6 @@ bool RoadVehiclesAreBuilt()
return false;
}
#define M(x) (1 << (x))
/* Level crossings may only be built on these slopes */
static const uint32 VALID_LEVEL_CROSSING_SLOPES = (M(SLOPE_SEN) | M(SLOPE_ENW) | M(SLOPE_NWS) | M(SLOPE_NS) | M(SLOPE_WSE) | M(SLOPE_EW) | M(SLOPE_FLAT));
#undef M
/* Invalid RoadBits on slopes */
static const RoadBits _invalid_tileh_slopes_road[2][15] = {
/* The inverse of the mixable RoadBits on a leveled slope */