Browse Source

engine: client: reset connection retries counter on changelevel

Fixes an issue when connection retry counter near the failure state
and the server changes level
pull/2/head
Alibek Omarov 2 years ago
parent
commit
41025c0049
  1. 2
      engine/client/cl_parse.c

2
engine/client/cl_parse.c

@ -2243,6 +2243,7 @@ void CL_ParseServerMessage( sizebuf_t *msg, qboolean normal_message )
else cls.state = ca_connecting; else cls.state = ca_connecting;
cl.background = old_background; cl.background = old_background;
cls.connect_time = MAX_HEARTBEAT; cls.connect_time = MAX_HEARTBEAT;
cls.connect_retry = 0;
} }
break; break;
case svc_setview: case svc_setview:
@ -2824,6 +2825,7 @@ void CL_ParseLegacyServerMessage( sizebuf_t *msg, qboolean normal_message )
else cls.state = ca_connecting; else cls.state = ca_connecting;
cl.background = old_background; cl.background = old_background;
cls.connect_time = MAX_HEARTBEAT; cls.connect_time = MAX_HEARTBEAT;
cls.connect_retry = 0;
} }
break; break;
case svc_setview: case svc_setview:

Loading…
Cancel
Save