summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-03-14 12:04:10 +0000
committeralberth <alberth@openttd.org>2010-03-14 12:04:10 +0000
commitb8d6e893cb25cf605392fee7c45f2909563f7bcd (patch)
treed35a9b4b85230f464997af4f46faf3f165770100 /src
parent5e7c4398ae8e1d9cbb511750abd3e37a4dcead77 (diff)
downloadopenttd-b8d6e893cb25cf605392fee7c45f2909563f7bcd.tar.xz
(svn r19413) -Codechange: Merging RailtypeFlag enum (a bit number) with RailTypeFlags enum (had values only).
Diffstat (limited to 'src')
-rw-r--r--src/rail.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/rail.h b/src/rail.h
index 68efa0121..ebb9b0917 100644
--- a/src/rail.h
+++ b/src/rail.h
@@ -20,13 +20,12 @@
#include "slope_type.h"
#include "strings_type.h"
-enum RailTypeFlag {
- RTF_CATENARY = 0, ///< Set if the rail type should have catenary drawn
-};
-
+/** Railtype flags. */
enum RailTypeFlags {
- RTFB_NONE = 0,
- RTFB_CATENARY = 1 << RTF_CATENARY,
+ RTF_CATENARY = 0, ///< Bit number for drawing a catenary.
+
+ RTFB_NONE = 0, ///< All flags cleared.
+ RTFB_CATENARY = 1 << RTF_CATENARY, ///< Value for drawing a catenary.
};
DECLARE_ENUM_AS_BIT_SET(RailTypeFlags);