View Single Post
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 10-18-2012 , 16:51   Re: Bitwise: more compact code
Reply With Quote #2

if you're sure that VIP_A is always unset and VIP_Z is always set in that function then you could use this i suppose:

giVipFlags[id] ^= (VIP_A|VIP_Z)
jimaway is offline