(svn r20097) -Codechange: Share constant bitset of safe level crossing slopes.
This commit is contained in:
@@ -79,6 +79,11 @@ enum Slope {
|
||||
};
|
||||
DECLARE_ENUM_AS_BIT_SET(Slope)
|
||||
|
||||
#define M(x) (1 << (x))
|
||||
/** Constant bitset with safe slopes for building a level crossing. */
|
||||
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
|
||||
|
||||
|
||||
/**
|
||||
* Enumeration for Foundations.
|
||||
|
Reference in New Issue
Block a user