source-sdk-2013
source-sdk-2013 copied to clipboard
[HL2MP] Use bitflags for filters
Original fix authored by Tony Sergi here.
Issue: Bitflags weren't being managed properly because of missing or incorrect bitwise operations. This led to unexpected behavior when trying to set, check, or combine multiple flags. Improper flag management could result in unintended logic execution or failure to deliver the desired functionality.
Fix: Implemented the right bitwise operations to accurately set, check, and handle bitflags. This allows multiple flags to work together as they should, without causing any conflicts, resulting in more reliable and consistent behavior.