engine: client: add a little auto-disconnect message in case of server timeout

This commit is contained in:
Alibek Omarov 2023-02-02 02:49:18 +03:00
parent 92138428c5
commit d5fe491c14
1 changed files with 1 additions and 0 deletions

View File

@ -752,6 +752,7 @@ void CL_WritePacket( void )
if(( host.realtime - cls.netchan.last_received ) > CONNECTION_PROBLEM_TIME )
{
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;
}
}