mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 14:29:05 -07:00
clamp roundTripTime
This commit is contained in:
parent
6537dc81f3
commit
b4c427059a
1 changed files with 1 additions and 0 deletions
|
@ -852,6 +852,7 @@ enet_protocol_handle_acknowledge (ENetHost * host, ENetEvent * event, ENetPeer *
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
roundTripTime = ENET_TIME_DIFFERENCE (host -> serviceTime, receivedSentTime);
|
roundTripTime = ENET_TIME_DIFFERENCE (host -> serviceTime, receivedSentTime);
|
||||||
|
roundTripTime = ENET_MAX (roundTripTime, 1);
|
||||||
|
|
||||||
enet_peer_throttle (peer, roundTripTime);
|
enet_peer_throttle (peer, roundTripTime);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue