summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4a49d56)
raw | patch | inline | side by side (parent: 4a49d56)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Fri, 15 Apr 2022 23:28:12 +0000 (02:28 +0300) | ||
committer | fgsfds <pvt.fgsfds@gmail.com> | |
Fri, 15 Apr 2022 23:28:12 +0000 (02:28 +0300) |
src/game/g_net.pas | patch | blob | history |
diff --git a/src/game/g_net.pas b/src/game/g_net.pas
index edd6024a49af09237130e98d105a0d3d0948efb9..dabb738106e281fd75a802b353e57d226a358ac5 100644 (file)
--- a/src/game/g_net.pas
+++ b/src/game/g_net.pas
NetAutoBanPerm: Boolean = True;
NetAutoBanWarn: Boolean = False;
- NetAuthTimeout: Integer = 15 * 1000;
- NetPacketTimeout: Integer = 30 * 1000;
+ NetAuthTimeout: Integer = 30 * 1000;
+ NetPacketTimeout: Integer = 60 * 1000;
NetState: Integer = NET_STATE_NONE;
else if (State = NET_STATE_GAME) and (MsgTime > 0) and (MsgTime <= gTime) then
begin
g_Net_Penalize(@NetClients[ID], 'message timeout');
- AuthTime := gTime + 500; // do it twice a second to give them a chance
+ MsgTime := gTime + (NetPacketTimeout div 2) + 500; // wait less for the next check
end;
end;
end;