summaryrefslogtreecommitdiff
path: root/src/slope_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-05-01 19:51:52 +0000
committerrubidium <rubidium@openttd.org>2011-05-01 19:51:52 +0000
commit5a620d1c6592057b500f0889eef8949dc1e95e4b (patch)
treedabae6247490fdea860bea292bb8eee49ce46fe4 /src/slope_type.h
parent1a515e6344028854c855671c19f49d8f869eb18f (diff)
downloadopenttd-5a620d1c6592057b500f0889eef8949dc1e95e4b.tar.xz
(svn r22406) -Document: some more "random-ish" tidbits
Diffstat (limited to 'src/slope_type.h')
-rw-r--r--src/slope_type.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slope_type.h b/src/slope_type.h
index 5eb7a7a20..bdf4b78ef 100644
--- a/src/slope_type.h
+++ b/src/slope_type.h
@@ -79,6 +79,10 @@ enum Slope {
};
DECLARE_ENUM_AS_BIT_SET(Slope)
+/**
+ * Helper for creating a bitset of slopes.
+ * @param x The slope to convert into a bitset.
+ */
#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);