I've been tossing some things around in my head, just various puzzles and what-not. One in particular has me stumped (sort of).
In QC spawnflags are powers of two. If I was to write a script in some other language that utilized the spawnflag system, what would be the most efficient way to parse out the proper power of 2 values, from a variable that contains multiple "flags"?
The keyword here is efficient. I have a way, but I believe it is probably the stupid way.
In QC spawnflags are powers of two. If I was to write a script in some other language that utilized the spawnflag system, what would be the most efficient way to parse out the proper power of 2 values, from a variable that contains multiple "flags"?
The keyword here is efficient. I have a way, but I believe it is probably the stupid way.
Comment