Skip to content

Commit

Permalink
AUTOADJUST_SERVER_DELAY fix
Browse files Browse the repository at this point in the history
  • Loading branch information
evolutionleo committed Mar 30, 2023
1 parent 7134ccc commit 7f4b458
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Client/scripts/HandlePacket/handlepacket.gml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function handlePacket(data) {
if (ping < 100)
global.server_time_delay = 50
else
global.server_time_delay = 100 * (ping div 100)
global.server_time_delay = 100 * ceil(ping / 100)
}

global.ping = ping
Expand All @@ -56,7 +56,7 @@ function handlePacket(data) {
var ping = new_t - t

if (AUTOADJUST_SERVER_DELAY)
global.server_time_delay = max(global.server_time_delay, 100 * (ping div 100))
global.server_time_delay = max(global.server_time_delay, 100 * ceil(ping / 100))

global.ping = ping
break
Expand Down
Binary file modified Release/GMClient.zip
Binary file not shown.
Binary file modified Release/JSServer.zip
Binary file not shown.
Binary file modified Release/TSServer.zip
Binary file not shown.
Binary file modified Release/Warp.yymps
Binary file not shown.

0 comments on commit 7f4b458

Please sign in to comment.