mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 13:51:31 +00:00
Fixed retry timeout to no ttrigger when starting a local server
This commit is contained in:
parent
247239c2bc
commit
9e1d7146ad
1 changed files with 2 additions and 1 deletions
|
@ -2394,7 +2394,7 @@ static boolean CL_ServerConnectionTicker(const char *tmpsave, tic_t *oldtic, tic
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CL_ASKJOIN:
|
case CL_ASKJOIN:
|
||||||
if (firstconnectattempttime + NEWTICRATE*300 < I_GetTime())
|
if (firstconnectattempttime + NEWTICRATE*300 < I_GetTime() && !server)
|
||||||
{
|
{
|
||||||
CONS_Printf(M_GetText("5 minute wait time exceeded.\n"));
|
CONS_Printf(M_GetText("5 minute wait time exceeded.\n"));
|
||||||
CONS_Printf(M_GetText("Network game synchronization aborted.\n"));
|
CONS_Printf(M_GetText("Network game synchronization aborted.\n"));
|
||||||
|
@ -2559,6 +2559,7 @@ static void CL_ConnectToServer(void)
|
||||||
oldtic = I_GetTime() - 1;
|
oldtic = I_GetTime() - 1;
|
||||||
#ifndef NONET
|
#ifndef NONET
|
||||||
asksent = I_GetTime() - NEWTICRATE*3;
|
asksent = I_GetTime() - NEWTICRATE*3;
|
||||||
|
firstconnectattempttime = I_GetTime();
|
||||||
|
|
||||||
i = SL_SearchServer(servernode);
|
i = SL_SearchServer(servernode);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue