Fix bitflags enum itemflags_t for C++

This commit is contained in:
Eidolon 2026-03-15 15:27:03 -05:00
parent 2db890dd27
commit c64ecb0d0a

View file

@ -69,13 +69,11 @@ typedef enum
PST_REBORN PST_REBORN
} playerstate_t; } playerstate_t;
typedef enum typedef INT32 itemflags_t;
{ #define IF_USERINGS (1) // Have to be not holding the item button to change from using rings to using items (or vice versa) - prevents weirdness
IF_USERINGS = 1, // Have to be not holding the item button to change from using rings to using items (or vice versa) - prevents weirdness #define IF_ITEMOUT (1<<1) // Are you holding an item out?
IF_ITEMOUT = 1<<1, // Are you holding an item out? #define IF_EGGMANOUT (1<<2) // Eggman mark held, separate from IF_ITEMOUT so it doesn't stop you from getting items
IF_EGGMANOUT = 1<<2, // Eggman mark held, separate from IF_ITEMOUT so it doesn't stop you from getting items #define IF_HOLDREADY (1<<3) // Hold button-style item is ready to activate
IF_HOLDREADY = 1<<3, // Hold button-style item is ready to activate
} itemflags_t;
// //
// Player internal flags // Player internal flags