X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_net.pas;h=fbc85eec75c06e797d0a006a452f9c33f9e16cbe;hb=36e374af750d9e3f049d97d9849a6629ff9b149b;hp=c06a021cd31ddc1a6ee59d30e96f48a7146a6327;hpb=cb61300b61ba18d486d19edf315f05b5b494fac3;p=d2df-sdl.git diff --git a/src/game/g_net.pas b/src/game/g_net.pas index c06a021..fbc85ee 100644 --- a/src/game/g_net.pas +++ b/src/game/g_net.pas @@ -72,12 +72,6 @@ const BANLIST_FILENAME = 'banlist.txt'; NETDUMP_FILENAME = 'netdump'; - {$IF DEFINED(FREEBSD) OR DEFINED(DARWIN)} - NilThreadId = nil; - {$ELSE} - NilThreadId = 0; - {$ENDIF} - type TNetMapResourceInfo = record wadName: AnsiString; // wad file name, without a path @@ -166,6 +160,7 @@ var NetPlrUID1: Integer = -1; NetPlrUID2: Integer = -1; + NetInterpLevel: Integer = 1; NetUpdateRate: Cardinal = 0; // as soon as possible NetRelupdRate: Cardinal = 18; // around two times a second NetMasterRate: Cardinal = 60000; @@ -2438,6 +2433,7 @@ initialization conRegVar('cl_downloadtimeout', @g_Net_DownloadTimeout, 0.0, 1000000.0, '', 'timeout in seconds, 0 to disable it'); conRegVar('cl_predictself', @NetPredictSelf, '', 'predict local player'); conRegVar('cl_forceplayerupdate', @NetForcePlayerUpdate, '', 'update net players on NET_MSG_PLRPOS'); + conRegVar('cl_interp', @NetInterpLevel, '', 'net player interpolation steps'); conRegVar('cl_last_ip', @NetClientIP, '', 'address of the last you have connected to'); conRegVar('cl_last_port', @NetClientPort, '', 'port of the last server you have connected to');