CLIENT: Fix playernames drawing at world origin when our of PVC

This commit is contained in:
Steam Deck User 2023-02-08 16:10:56 -05:00
parent b27b3e0ca9
commit 13985760d2

View file

@ -1476,6 +1476,9 @@ void(float width, float height) HUD_PlayerNames =
vector screen_position = project(player_origin); vector screen_position = project(player_origin);
vector text_color = '1 1 1'; vector text_color = '1 1 1';
if (player_origin == '0 0 48')
continue;
screen_position_x -= stringwidth(text, 0, [8, 8])/2; screen_position_x -= stringwidth(text, 0, [8, 8])/2;
switch(i) { switch(i) {