View Single Post
Seren

JCF Member

Joined: Feb 2010

Posts: 868

Seren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to all

Feb 12, 2021, 10:21 AM
Seren is offline
Quote:
Originally Posted by Zah dud4h View Post
Once you put the negative value of a clientID, the server decides not to send the packet back to players that are not using the clientIDs 1, 3 or 7 (probably also 15 and 31, since there seems to be a pattern here).

Judging by the pattern of the numbers, i suspect there is something in the code that tries to do a bitwise "AND" operation (&) instead of using the "AND" logic comparator (&&), or perhaps some other bitwise operator mistake.
No, and this behavior description is not entirely accurate, but thanks for the report, there is indeed a problem with negative arguments to the function!
__________________

I am an official JJ2+ programmer and this has been an official JJ2+ statement.