Skip to content

Commit 0eb4c86

Browse files
Vladislav4KZa1batross
authored andcommitted
hud: fix radar location name goes off-screen for long names
1 parent 71bb037 commit 0eb4c86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cl_dll/hud/radar.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ void CHudRadar::DrawPlayerLocation( int y )
394394
int len = DrawUtils::ConsoleStringLen( szLocalizedLocation );
395395

396396
x = x - len / 2;
397+
if( x < 0 ) x = 0;
397398

398399
DrawUtils::DrawConsoleString( x, y, szLocalizedLocation );
399400
}

0 commit comments

Comments
 (0)