Remove CLIENTBACKUPTICS

Removes the second part added by 6e7adedaa0
This is to be closer to kart and to remove some freezes I sometimes feel
This commit is contained in:
NepDisk 2025-03-13 01:46:37 -04:00
parent 7ce17d2c6e
commit cdd3516f0b
2 changed files with 5 additions and 6 deletions

View file

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

View file

@ -43,7 +43,6 @@ 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.