From 3dce66a5c55bd7495e52f15020e3210c367f17a5 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 21 Nov 2023 15:27:46 +0100 Subject: [PATCH] fix ping command showing a random players ms ping instead of your ping --- src/d_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_net.c b/src/d_net.c index 8fa218cd..1dcbb379 100644 --- a/src/d_net.c +++ b/src/d_net.c @@ -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))); } }