mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 12:21:19 +00:00
Improve stability when joining netgames maybe
This commit is contained in:
parent
426f4192be
commit
bafa4cee7b
1 changed files with 13 additions and 0 deletions
|
@ -2084,14 +2084,20 @@ static boolean CL_ServerConnectionTicker(boolean viams, const char *tmpsave, tic
|
||||||
CL_PrepareDownloadSaveGame(tmpsave);
|
CL_PrepareDownloadSaveGame(tmpsave);
|
||||||
#endif
|
#endif
|
||||||
if (CL_SendJoin())
|
if (CL_SendJoin())
|
||||||
|
{
|
||||||
|
*asksent = I_GetTime();
|
||||||
cl_mode = CL_WAITJOINRESPONSE;
|
cl_mode = CL_WAITJOINRESPONSE;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CL_ASKDOWNLOADFILES:
|
case CL_ASKDOWNLOADFILES:
|
||||||
cl_needsdownload = true;
|
cl_needsdownload = true;
|
||||||
|
|
||||||
if (CL_SendJoin())
|
if (CL_SendJoin())
|
||||||
|
{
|
||||||
|
*asksent = I_GetTime();
|
||||||
cl_mode = CL_WAITDOWNLOADFILESRESPONSE;
|
cl_mode = CL_WAITDOWNLOADFILESRESPONSE;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
@ -2114,6 +2120,13 @@ static boolean CL_ServerConnectionTicker(boolean viams, const char *tmpsave, tic
|
||||||
|
|
||||||
case CL_WAITJOINRESPONSE:
|
case CL_WAITJOINRESPONSE:
|
||||||
case CL_WAITDOWNLOADFILESRESPONSE:
|
case CL_WAITDOWNLOADFILESRESPONSE:
|
||||||
|
if (*asksent + NEWTICRATE < I_GetTime() && CL_SendJoin())
|
||||||
|
{
|
||||||
|
*asksent = I_GetTime();
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
case CL_CONNECTED:
|
case CL_CONNECTED:
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue