Quote:
Originally Posted by fysiks
Why do you think that? Do you have an example of code that is broken because of this? Also, wouldn't that remove CSW_P228 and CSW_G3SG1 through CSW_VESTHELM? Note that it is defined the same way in the cstrike module.
Additionally, if you can show it's actually a bug, you should create an issue on GitHub if you believe there is a bug.
|
because first bit ( 1 << 0 ) is a none weapon ( not used )
#define CSW_NONE 0
also lets not consider the VESTHELM of being a weapon.
CSW_ALL_WEAPONS should be more correct holding this value 0x7FFFFFFE = which is 0111 1111 1111 1111 1111 1111 1111 1110 in bits
excluding the CSW_VEST, CSW_VESTHELM and excluding THE CSW_NONE which is 0
Code:
CSW_ALL_WEAPONS = ~( CSW_ALL_ARMORS| (1<<CSW_NONE) )
__________________