From 3fd2ba17fbfb4c0954560d1ea8adb20df170f8d5 Mon Sep 17 00:00:00 2001 From: aurhat <6187373+aurhat@users.noreply.github.com> Date: Tue, 19 Oct 2021 23:02:43 +0200 Subject: [PATCH] adjust distance between 3-digit score counters on HUD --- source/src/renderhud.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index a3b49761..bb9ce41c 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -1085,7 +1085,8 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat if(m_teammode) { defformatstring(count)("\f%c%d", cc[i], scores[i + offs]); - draw_text(count, i * 120 + VIRTW / 4.0f * 3.0f + 60 - text_width(count) / 2, 1590); + int countwidth = text_width(count); + draw_text(count, i * 120 + VIRTW / 4.0f * 3.0f + (countwidth > 114 ? (i ? 3 : (120 - countwidth - 3)) : (60 - countwidth / 2)), 1590); } } if(!offs)