Bitflags: pow(2,n) equals 1<<n
🌙 Lua•Updated 2 days ago•0 views
pow(2,n) == 1<<n - source engine enums/flags are bitflags, so combining flags uses bitwise ops not arithmetic power.
Relation between pow(2,n), 2^n and bit shifting
pow(2,n) == 1<<n - source engine enums/flags are bitflags, so combining flags uses bitwise ops not arithmetic power.