27.06.2016, 00:24
@IstuntmanI: PC_HasFlag could be a simple macro for all I care, I was just suggesting it be there on his side. It's looks much more practical than binary code everywhere you need to test a flag.
#define PC_HasFlag(%0,%1) (PC_GetFlags(%0) & %1)
Which poses a new suggestion... Remove the '&flags' parameter from GetFlags and just return the flags.
#define PC_HasFlag(%0,%1) (PC_GetFlags(%0) & %1)
Which poses a new suggestion... Remove the '&flags' parameter from GetFlags and just return the flags.