mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
during id pak downloads, the time-out is 5 seconds instead of cl_timeout
This commit is contained in:
parent
543a024917
commit
ce46cebce0
2 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
|||
|
||||
DD Mmm 18 - 1.50
|
||||
|
||||
chg: during id downloads (cl_allowDownload -1), the time-out is 5 seconds instead of cl_timeout
|
||||
|
||||
chg: the "nextdemo" cvar is now also used when playback stops before reaching the demo's end
|
||||
|
||||
chg: mouse motion is no longer forwarded to the mod when the console is down
|
||||
|
|
|
@ -1472,12 +1472,12 @@ static void CL_CheckTimeout()
|
|||
return;
|
||||
}
|
||||
|
||||
const int timeout = clc.download ? 5000 : (cl_timeout->integer * 1000);
|
||||
if ( ( !CL_Paused() || !sv_paused->integer )
|
||||
&& cls.state >= CA_CONNECTED && cls.state != CA_CINEMATIC
|
||||
&& cls.realtime - clc.lastPacketTime > cl_timeout->value*1000) {
|
||||
&& cls.realtime - clc.lastPacketTime > timeout) {
|
||||
if (++cl.timeoutcount > 5) { // timeoutcount saves debugger
|
||||
Com_Printf ("\nServer connection timed out.\n");
|
||||
CL_Disconnect( qtrue );
|
||||
Com_Error( ERR_DROP, "Server connection timed out" );
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue