mirror of https://github.com/OpenTTD/OpenTTD
(svn r19413) -Codechange: Merging RailtypeFlag enum (a bit number) with RailTypeFlags enum (had values only).
parent
5e7c4398ae
commit
b8d6e893cb
11
src/rail.h
11
src/rail.h
|
@ -20,13 +20,12 @@
|
||||||
#include "slope_type.h"
|
#include "slope_type.h"
|
||||||
#include "strings_type.h"
|
#include "strings_type.h"
|
||||||
|
|
||||||
enum RailTypeFlag {
|
/** Railtype flags. */
|
||||||
RTF_CATENARY = 0, ///< Set if the rail type should have catenary drawn
|
|
||||||
};
|
|
||||||
|
|
||||||
enum RailTypeFlags {
|
enum RailTypeFlags {
|
||||||
RTFB_NONE = 0,
|
RTF_CATENARY = 0, ///< Bit number for drawing a catenary.
|
||||||
RTFB_CATENARY = 1 << RTF_CATENARY,
|
|
||||||
|
RTFB_NONE = 0, ///< All flags cleared.
|
||||||
|
RTFB_CATENARY = 1 << RTF_CATENARY, ///< Value for drawing a catenary.
|
||||||
};
|
};
|
||||||
DECLARE_ENUM_AS_BIT_SET(RailTypeFlags);
|
DECLARE_ENUM_AS_BIT_SET(RailTypeFlags);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue