engine: common: move network cvars to static allocation

This commit is contained in:
Alibek Omarov
2023-05-19 08:22:30 +03:00
parent e7ece41ba0
commit 4ce2475602
4 changed files with 95 additions and 85 deletions

View File

@@ -273,12 +273,12 @@ void SV_CheckCmdTimes( void )
diff = cl->connecttime + cl->cmdtime - host.realtime;
if( diff > net_clockwindow->value )
if( diff > net_clockwindow.value )
{
cl->ignorecmdtime = net_clockwindow->value + host.realtime;
cl->ignorecmdtime = net_clockwindow.value + host.realtime;
cl->cmdtime = host.realtime - cl->connecttime;
}
else if( diff < -net_clockwindow->value )
else if( diff < -net_clockwindow.value )
{
cl->cmdtime = host.realtime - cl->connecttime;
}