From 18ec5f2d6aa44fd03ce92a63d59717d5e1468595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A1=D1=83=D1=85=D0=BE=D0=B2?= <22411953+Vladislav4KZ@users.noreply.github.com> Date: Thu, 8 Jan 2026 21:41:06 +0000 Subject: [PATCH] client: add localization support for locations under the radar --- cl_dll/hud/radar.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cl_dll/hud/radar.cpp b/cl_dll/hud/radar.cpp index 43f276907..9f5ca26e9 100644 --- a/cl_dll/hud/radar.cpp +++ b/cl_dll/hud/radar.cpp @@ -387,12 +387,15 @@ void CHudRadar::DrawPlayerLocation( int y ) const char *szLocation = g_PlayerExtraInfo[gHUD.m_Scoreboard.m_iPlayerNum].location; if( szLocation[0] ) { + // Localize the location string + const char *szLocalizedLocation = Localize( szLocation ); + int x = (m_hRadarOpaque.rect.Width()) / 2; - int len = DrawUtils::ConsoleStringLen( szLocation ); + int len = DrawUtils::ConsoleStringLen( szLocalizedLocation ); x = x - len / 2; - DrawUtils::DrawConsoleString( x, y, szLocation ); + DrawUtils::DrawConsoleString( x, y, szLocalizedLocation ); } }