summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d44f157)
raw | patch | inline | side by side (parent: d44f157)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 5 Aug 2019 17:26:15 +0000 (20:26 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 5 Aug 2019 17:28:10 +0000 (20: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 20da332414e4bbf5b80ceaf66c0f74ea112f167e..0f3df0f81f384348afba14eeaa326f3ce4ff6f42 100644 (file)
--- a/src/game/g_net.pas
+++ b/src/game/g_net.pas
g_main, g_game, g_language, g_weapons, utils, ctypes;
var
- g_Net_DownloadTimeoutMs: Single;
+ g_Net_DownloadTimeout: Single;
{ /// SERVICE FUNCTIONS /// }
FillChar(ev, SizeOf(ev), 0);
stream := nil;
repeat
- status := enet_host_service(NetHost, @ev, Trunc(g_Net_DownloadTimeoutMs * 1000));
+ status := enet_host_service(NetHost, @ev, Trunc(g_Net_DownloadTimeout * 1000));
if status > 0 then
begin
case ev.kind of
{$ENDIF}
initialization
- conRegVar('cl_downloadtimeout', @g_Net_DownloadTimeoutMs, 0.0, 1000000.0, '', 'timeout in seconds, 0 to disable it');
- g_Net_DownloadTimeoutMs := 60;
+ conRegVar('cl_downloadtimeout', @g_Net_DownloadTimeout, 0.0, 1000000.0, '', 'timeout in seconds, 0 to disable it');
+ g_Net_DownloadTimeout := 60;
NetIn.Alloc(NET_BUFSIZE);
NetOut.Alloc(NET_BUFSIZE);
finalization