Skip to content

Commit

Permalink
bit
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Apr 30, 2024
1 parent 76cf650 commit 2e364bb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions code/__DEFINES/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,16 @@
#define ATTACHMENT_SLOT_GRIP "attach-slot-grip"
#define ATTACHMENT_SLOT_RAIL "attach-slot-rail"

#define NEW_ATTACHMENT_SLOT_MUZZLE (1<<0)
#define NEW_ATTACHMENT_SLOT_SCOPE (1<<1)
#define NEW_ATTACHMENT_SLOT_GRIP (1<<2)
#define NEW_ATTACHMENT_SLOT_RAIL (1<<3)
#define BIT_ATTACHMENT_SLOT_MUZZLE (1<<0)
#define BIT_ATTACHMENT_SLOT_SCOPE (1<<1)
#define BIT_ATTACHMENT_SLOT_GRIP (1<<2)
#define BIT_ATTACHMENT_SLOT_RAIL (1<<3)

DEFINE_BITFIELD(attach_slots, list(
ATTACHMENT_SLOT_MUZZLE = NEW_ATTACHMENT_SLOT_MUZZLE,
ATTACHMENT_SLOT_SCOPE = NEW_ATTACHMENT_SLOT_SCOPE,
ATTACHMENT_SLOT_GRIP = NEW_ATTACHMENT_SLOT_GRIP,
ATTACHMENT_SLOT_RAIL = NEW_ATTACHMENT_SLOT_RAIL
ATTACHMENT_SLOT_MUZZLE = BIT_ATTACHMENT_SLOT_MUZZLE,
ATTACHMENT_SLOT_SCOPE = BIT_ATTACHMENT_SLOT_SCOPE,
ATTACHMENT_SLOT_GRIP = BIT_ATTACHMENT_SLOT_GRIP,
ATTACHMENT_SLOT_RAIL = BIT_ATTACHMENT_SLOT_RAIL
))

#define COMSIG_ATTACHMENT_TOGGLE "attach-toggle"
Expand Down

0 comments on commit 2e364bb

Please sign in to comment.