MSVC fixes pt 5

This commit is contained in:
Michał Janiszewski authored and Michał Janiszewski committed 2018-01-11 09:30:09 +01:00
1 parent f50ce343a2
commit 19d35e6898
1 file changed
+5 -1
+5 -1
View File
@@ -763,7 +763,7 @@ enum {
RIDE_ELEMENT_WHIRLPOOL = 1 << 7
};
enum {
enum ride_type_flags {
RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN = 1 << 0,
RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_ADDITIONAL = 1 << 1,
RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS = 1 << 2,
@@ -797,6 +797,10 @@ enum {
RIDE_TYPE_FLAG_HAS_LARGE_CURVES = 1 << 30, // whether the ride supports large (45 degree turn) curves
RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR = 1u << 31,
};
#ifdef __cplusplus
// Hack for MSVC which thinks RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR = 1u << 31 is signed and generates narrowing conversion warnings
constexpr inline uint32 operator | (ride_type_flags a, ride_type_flags b) { return static_cast<ride_type_flags>(static_cast<uint32>(a) | static_cast<uint32>(b)); }
#endif
enum {
RIDE_CRASH_TYPE_NONE = 0,