Quote:
Originally Posted by NiHiLaNTh
single | is bitwise OR. Probably you can do it like that:
Code:
if (1<<get_pcvar_num(pcvar) & (1<<1)|(1<<3))
|
Hi Nihi ^_^
Yes that works but doesn't it multiply the value with itself?
What I'm trying to do is optimize, since getting the same cvar twice in a single check is pointless.
What's the best way I could do that?
__________________