This commit is contained in:
Arisotura 2023-04-05 22:48:37 +02:00
parent 60cc16fcfa
commit 02c0ed3a23
1 changed files with 1 additions and 1 deletions

View File

@ -659,7 +659,7 @@ void SyncMirrorClients()
int ngood = 0;
ENetEvent evt;
while (enet_host_service(MirrorHost, &evt, 5000) > 0)
{
{printf("EVENT %d CH %d\n", evt.type, evt.channelID);
if (evt.type == ENET_EVENT_TYPE_RECEIVE && evt.channelID == 1)
{
if (evt.packet->dataLength == 1 && evt.packet->data[0] == 0x04)