Merge branch 'pingcmdfix' into 'master'

Fix ping command showing a random players ms ping instead of your ping

See merge request KartKrew/Kart-Public!342
This commit is contained in:
Sal 2024-03-30 01:02:04 +00:00
commit 1116df5776

View file

@ -1464,7 +1464,7 @@ void Command_Ping_f(void)
if (!server && playeringame[consoleplayer])
{
CONS_Printf("\nYour ping is %d frames (%d ms)\n", playerpingtable[consoleplayer], (INT32)(playerpingtable[i] * (1000.00f / TICRATE)));
CONS_Printf("\nYour ping is %d frames (%d ms)\n", playerpingtable[consoleplayer], (INT32)(playerpingtable[consoleplayer] * (1000.00f / TICRATE)));
}
}