Fix ping measurement off-by-one that slightly underestimates ping measurements

This commit is contained in:
toaster 2022-10-26 13:50:35 +01:00
parent 289de329eb
commit 33e35b7e13

View file

@ -6054,7 +6054,7 @@ static inline void PingUpdate(void)
if (nodeingame[i]) if (nodeingame[i])
HSendPacket(i, true, 0, sizeof(INT32) * (MAXPLAYERS+1)); HSendPacket(i, true, 0, sizeof(INT32) * (MAXPLAYERS+1));
pingmeasurecount = 1; //Reset count pingmeasurecount = 0; //Reset count
} }
static tic_t gametime = 0; static tic_t gametime = 0;