mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- make breakflags an enum.
This commit is contained in:
parent
de12433809
commit
5bf77ddb2b
2 changed files with 13 additions and 7 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue