X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_net.pas;h=0f3df0f81f384348afba14eeaa326f3ce4ff6f42;hp=20da332414e4bbf5b80ceaf66c0f74ea112f167e;hb=6f6b37c341bc73e5e2a135f355a9891292b8e849;hpb=d44f15771c529f2049fafb1364cd12529e950ab6 diff --git a/src/game/g_net.pas b/src/game/g_net.pas index 20da332..0f3df0f 100644 --- a/src/game/g_net.pas +++ b/src/game/g_net.pas @@ -209,7 +209,7 @@ uses g_main, g_game, g_language, g_weapons, utils, ctypes; var - g_Net_DownloadTimeoutMs: Single; + g_Net_DownloadTimeout: Single; { /// SERVICE FUNCTIONS /// } @@ -962,7 +962,7 @@ begin 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 @@ -1271,8 +1271,8 @@ end; {$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