Fix bitflags enum terrain_flags_t for C++

This commit is contained in:
Eidolon 2026-03-31 19:34:36 -05:00
parent e77b192d90
commit 2cff964080

View file

@ -93,15 +93,13 @@ struct t_overlay_t
fixed_t speed; // Speed-up based on object speed. 0 plays the animation at a constant rate. fixed_t speed; // Speed-up based on object speed. 0 plays the animation at a constant rate.
}; };
typedef enum typedef INT32 terrain_flags_t;
{ // Terrain flag values.
// Terrain flag values. #define TRF_LIQUID (1) // Texture has water properties (wavy, slippery, etc)
TRF_LIQUID = 1, // Texture has water properties (wavy, slippery, etc) #define TRF_SNEAKERPANEL (1<<1) // Texture is a booster
TRF_SNEAKERPANEL = 1<<1, // Texture is a booster #define TRF_STAIRJANK (1<<2) // Texture is bumpy road
TRF_STAIRJANK = 1<<2, // Texture is bumpy road #define TRF_TRIPWIRE (1<<3) // Texture is a tripwire when used as a midtexture
TRF_TRIPWIRE = 1<<3, // Texture is a tripwire when used as a midtexture #define TRF_REMAP (1<<4) // Texture colors may be remapped with ENCOREMAP or TWEAKMAP
TRF_REMAP = 1<<4, // Texture colors may be remapped with ENCOREMAP or TWEAKMAP
} terrain_flags_t;
struct terrain_t struct terrain_t
{ {