Remove useless condition

This commit is contained in:
Louis-Antoine 2020-10-27 20:28:54 +01:00
parent 395d1f1b8f
commit e178966367

View file

@ -5022,24 +5022,18 @@ void NetUpdate(void)
// Don't erase tics not acknowledged // Don't erase tics not acknowledged
counts = realtics; counts = realtics;
// Do not make tics while resynching if (maketic + counts >= firstticstosend + BACKUPTICS)
if (counts != -666) counts = firstticstosend+BACKUPTICS-maketic-1;
{
if (maketic + counts >= firstticstosend + BACKUPTICS)
counts = firstticstosend+BACKUPTICS-maketic-1;
for (i = 0; i < counts; i++) for (i = 0; i < counts; i++)
SV_Maketic(); // Create missed tics and increment maketic SV_Maketic(); // Create missed tics and increment maketic
for (; tictoclear < firstticstosend; tictoclear++) // Clear only when acknowledged for (; tictoclear < firstticstosend; tictoclear++) // Clear only when acknowledged
D_Clearticcmd(tictoclear); // Clear the maketic the new tic D_Clearticcmd(tictoclear); // Clear the maketic the new tic
SV_SendTics(); SV_SendTics();
neededtic = maketic; // The server is a client too neededtic = maketic; // The server is a client too
}
else
hu_redownloadinggamestate = true;
} }
} }