From 949bbebf7b8be3bf43b603834fd30fe5a4a670ca Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 5 Nov 2023 16:29:55 +0100 Subject: [PATCH] fix ping stuff with new fps counter shit goddammit i never do anything when im tired again --- src/hu_stuff.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index a34b747b0..398fc2d27 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -2582,12 +2582,16 @@ void HU_drawPing(INT32 x, INT32 y, UINT32 lag, INT32 flags) { if (cv_ticrate.value == 2){ V_DrawScaledPatch(x+12 - pingmeasure[measureid]->width, y+22, flags, pingmeasure[measureid]); - V_DrawScaledPatch(x+4, y+13, flags, pinggfx[gfxnum]); }else{ - V_DrawScaledPatch(x+12 - pingmeasure[measureid]->width, y+9, flags, pingmeasure[measureid]); - V_DrawScaledPatch(x+4, y+2, flags, pinggfx[gfxnum]); + V_DrawScaledPatch(x+11 - pingmeasure[measureid]->width, y+9, flags, pingmeasure[measureid]); } } + + if (cv_ticrate.value == 2){ + V_DrawScaledPatch(x+4, y+13, flags, pinggfx[gfxnum]); + }else{ + V_DrawScaledPatch(x+4, y, flags, pinggfx[gfxnum]); + } if (servermaxping && lag > servermaxping && hu_tick < 4) { @@ -2606,8 +2610,14 @@ void HU_drawPing(INT32 x, INT32 y, UINT32 lag, INT32 flags) x = V_DrawPingNum(x + (measureid == 1 ? 11 - pingmeasure[measureid]->width : 10), y+9, flags, lag, colormap); } - if (measureid == 0) - V_DrawScaledPatch(x+1 - pingmeasure[measureid]->width, y+9, flags, pingmeasure[measureid]); + if (measureid == 0){ + if (cv_ticrate.value == 2){ + V_DrawScaledPatch(x+1 - pingmeasure[measureid]->width, y+22, flags, pingmeasure[measureid]); + }else{ + V_DrawScaledPatch(x+1 - pingmeasure[measureid]->width, y+9, flags, pingmeasure[measureid]); + } + } + } //