Fixed retry timeout to no ttrigger when starting a local server

This commit is contained in:
Ashnal 2020-08-20 23:38:04 -04:00
parent 247239c2bc
commit 9e1d7146ad

View file

@ -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);