Browse Source

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

pull/2/head
Alibek Omarov 2 years ago
parent
commit
d5fe491c14
  1. 1
      engine/client/cl_main.c

1
engine/client/cl_main.c

@ -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…
Cancel
Save