engine: client: reset connection retries counter on changelevel
Fixes an issue when connection retry counter near the failure state and the server changes level
This commit is contained in:
parent
6518a5cf8b
commit
41025c0049
|
@ -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…
Reference in New Issue