Quote:
Originally Posted by Fаng
Are you using hexes?
Example of status types:
0x1
0x2
0x3....
...0x8
0x9
0xA
0xB...
... 0xF
0x10
x11...
|
They're bitflags for individual status types; a bitwise OR is used on a client's status to add a status to it and a bitwise AND is used to clear specific statuses from the client's status.
0x01
0x02
0x04
0x08
0x10
0x20
0x40
...
TQ does what Jacob put above - shifting 1 up until the size of the update value (32 bits for early clients, 64 bits for later clients). (1U << x, where x is an integer from 0-63)