View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-10-2021 , 20:18   Re: Development Roundup, We need you!
Reply With Quote #82

Last night (this morning) I was tired and turns out I was thinking about thing 1 shift off. Therefore, I was wrong about the CSW_P228 part.

Also, "1<<CSW_VESTHELM" is not really valid because it tries to set the 33rd bit but there are only 32 bits in a cell in AMX Mod X. Therefore, 1<<CSW_VESTHELM is 0 and doesn't do anything for this bitsum. So, your original correction was wrong but this latest version is correct.

Quote:
Originally Posted by Natsheh View Post
Code:
CSW_ALL_WEAPONS = ~( CSW_ALL_ARMORS| (1<<CSW_NONE) )
I'm currently struggling with understanding why these bit sums are defined at all, I don't see where they would be useful. In fact, I think they are misleading and should probably be removed entirely. If someone was to need something like this, they should use a switch.

Regardless, this discussion should be occurring in a GitHub issue, not here. Please create an issue on GitHub.
__________________
fysiks is offline