SharkAce / Aquarena

Multiplier game in development with a serperate Client and Server
0 stars 0 forks source link

Client sometimes recieves the wrong udp response type #7

Open SharkAce opened 3 months ago

SharkAce commented 3 months ago

The issue seems to arise after timing out on a response, we need to find a way to ignore timeout response when they finally arrive.

SharkAce commented 3 months ago

A possible solution would be to add a sequence number to the UdpWrapper and check if current < wrapper.sequenceNumber.