Files
siliconsGitHubVM_USER <VM_USER>
bf62a62bab vehicle repath, piggybacking, firemanning, riding components, multiseat vehicles, buckling, probably other stuff (#4361)
* shit code goes in the comedy bin

* stubs

* move those

* w

* vehicle repath

* maybe that instead

* aouhgoawhuh3ho

* markers

* a

* fixes

* hell

* let the great refactoring begin

* a

* aouhg

* changes

* augh

* signals

* s

* offhand stuff

* wrappers

* stuff

* modifications

* a

* stuff

* base component

* Stuff

* a

* stuff

* ay

* Ay

* ?

* fix

* a

* augh

* aough

* mark those

* sigh

* correction

* that

* let the good times roll

* more

* more

* on god

* aoihgouh

* fixes

* done with that ifle

* sigh

* a

* s

* fuck off voremobs

* stuff

* pain

* some more

* changes

* changes

* f/r

* sigh

* impl

* out with the useless

* fix

* Fixes

* a

* fixes

* move that

* pain

* fix

* m

* pain

* WHY

* regex

* s

* just offsets to go

* reserve those words

* that

* stuff

* stuff

* not sure if list ops were a good ide abut whatever

* fix

* and once more with energy!

* and once more with energy!

* fixes

* offsets

* fix

* lmao!

* ay

* patch

* fixes

* propagate that shit through

* ayo

* bruh?

* e

* PLEASE END MY SUFFERING

* ah.

* that

* fix

* fix

* fixes

* e

* Fix

* fix

* fix

* Fix

* fix

* fix

Co-authored-by: VM_USER <VM_USER>
2022-09-29 22:13:03 -07:00

23 lines
951 B
Plaintext

///MARK ALL FLAG CHANGES IN _globalvars/bitfields.dm!
///All flags should go in here if possible.
/// For convenience.
#define ALL (~0)
#define NONE 0
/// copy flags from B to A
#define COPY_SPECIFIC_BITFIELDS(a, b, flags) (a = ((a & ~(flags)) | (b & flags)))
// Check if all bitflags specified are present
#define CHECK_MULTIPLE_BITFIELDS(flagvar, flags) ((flagvar & (flags)) == flags)
// Macros to test for bits in a bitfield. Note, that this is for use with indexes, not bit-masks!
#define BITTEST(bitfield,index) ((bitfield) & (1 << (index)))
#define BITSET(bitfield,index) (bitfield) |= (1 << (index))
#define BITRESET(bitfield,index) (bitfield) &= ~(1 << (index))
#define BITFLIP(bitfield,index) (bitfield) ^= (1 << (index))
GLOBAL_LIST_INIT(bitflags, list(
1<<0, 1<<1, 1<<2, 1<<3, 1<<4, 1<<5, 1<<6, 1<<7,
1<<8, 1<<9, 1<<10, 1<<11, 1<<12, 1<<13, 1<<14, 1<<15,
1<<16, 1<<17, 1<<18, 1<<19, 1<<20, 1<<21, 1<<22, 1<<23
))