16.09.2016, 21:00
Quote:
If you don't know much about bit manipulation I suggest opening a thread about this in the Scripting Help section on this subject.
|
Why use (flags & DEFINED_FLAG) ? Wouldn't (flags == DEFINED_FLAG) make more sense?
I figured out that option 2 wouldn't work if you used multiple flags for one command.
But as far as I'm concerned doesn't the & operation make a bitstring?
Won't that bitstring be interpreted as an integer when using the && operator?
Edit: I actually figured it out while typing this message, lol. Thanks a bunch!