Skip to content

Commit

Permalink
Update protocol.c
Browse files Browse the repository at this point in the history
  • Loading branch information
GuckTubeYT authored Jun 28, 2023
1 parent 87b4022 commit b90f431
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion enet/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,8 @@ enet_protocol_handle_incoming_commands (ENetHost * host, ENetEvent * event)
return 0;
if (ENET_NET_TO_HOST_16(newHeader -> integrity[2]) <= 0x7FFF)
return 0;
printf("%d\n", ((ENET_NET_TO_HOST_16(newHeader -> integrity[2]) & 0x920D) | 0x61D2));
if (((ENET_NET_TO_HOST_16(newHeader -> integrity[2]) & 0x920D) | 0x61D2) != 0xF7DF)
return 0;
if ((ENET_NET_TO_HOST_16(newHeader -> integrity[2]) | 0x61D2) != 0xF7DF)
return 0;
if ((ENET_NET_TO_HOST_16(newHeader -> integrity[2]) & 0x920D) != 0x920D)
Expand Down

0 comments on commit b90f431

Please sign in to comment.