mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-03-11 05:21:07 +00:00
engine: client: add a little auto-disconnect message in case of server timeout
This commit is contained in:
parent
92138428c5
commit
d5fe491c14
@ -752,6 +752,7 @@ void CL_WritePacket( void )
|
|||||||
if(( host.realtime - cls.netchan.last_received ) > CONNECTION_PROBLEM_TIME )
|
if(( host.realtime - cls.netchan.last_received ) > CONNECTION_PROBLEM_TIME )
|
||||||
{
|
{
|
||||||
Con_NPrintf( 1, "^3Warning:^1 Connection Problem^7\n" );
|
Con_NPrintf( 1, "^3Warning:^1 Connection Problem^7\n" );
|
||||||
|
Con_NPrintf( 2, "^1Auto-disconnect in %.1f seconds^7", cl_timeout->value - ( host.realtime - cls.netchan.last_received ));
|
||||||
cl.validsequence = 0;
|
cl.validsequence = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user