- make breakflags an enum.

This commit is contained in:
Christoph Oelckers 2021-10-31 15:47:00 +01:00
parent de12433809
commit 5bf77ddb2b
2 changed files with 13 additions and 7 deletions

View file

@ -29,12 +29,15 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
BEGIN_SW_NS
#define BF_TOUGH (BIT(0))
#define BF_KILL (BIT(1))
#define BF_BURN (BIT(2))
#define BF_OVERRIDE_BLOCK (BIT(3))
#define BF_FIRE_FALL (BIT(4))
#define BF_LEAVE_BREAK (BIT(5))
enum
{
BF_TOUGH = BIT(0),
BF_KILL = BIT(1),
BF_BURN = BIT(2),
BF_OVERRIDE_BLOCK = BIT(3),
BF_FIRE_FALL = BIT(4),
BF_LEAVE_BREAK = BIT(5),
};
typedef struct
{

View file

@ -78,7 +78,10 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
// mask definitions
#define BIT(shift) (1<<(shift))
constexpr int BIT(int shift)
{
return 1 << shift;
}
#endif