Readd clientbackuptics

This commit is contained in:
NepDisk 2025-07-07 10:32:09 -04:00
parent 71c4734b5e
commit a3bd999c11
2 changed files with 5 additions and 4 deletions

View file

@ -4961,8 +4961,8 @@ static void HandlePacketFromPlayer(SINT8 node)
txtpak = (UINT8 *)&netbuffer->u.serverpak.cmds[netbuffer->u.serverpak.numslots
* netbuffer->u.serverpak.numtics];
if (realend > gametic + BACKUPTICS)
realend = gametic + BACKUPTICS;
if (realend > gametic + CLIENTBACKUPTICS)
realend = gametic + CLIENTBACKUPTICS;
cl_packetmissed = realstart > neededtic;
if (realstart <= neededtic && realend > neededtic)
@ -5407,8 +5407,8 @@ static void SV_SendTics(void)
realfirsttic = supposedtics[n];
lasttictosend = maketic;
if (lasttictosend - nettics[n] >= BACKUPTICS)
lasttictosend = nettics[n] + BACKUPTICS-1;
if (lasttictosend - nettics[n] >= CLIENTBACKUPTICS)
lasttictosend = nettics[n] + CLIENTBACKUPTICS-1;
if (realfirsttic >= lasttictosend)
{

View file

@ -43,6 +43,7 @@ applications may follow different packet versions.
// Networking and tick handling related.
#define BACKUPTICS 512 // more than enough for most timeouts....
#define CLIENTBACKUPTICS 32
#define MAXTEXTCMD 512
// No. of tics your controls can be delayed by.