X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud%2Fhud.qh;h=5087fa526929a086937b16d0dadb3463739045a1;hp=d7b4585b709c05839658cdf6986461d773fb3740;hb=c039d054a46888048d214000273ccfc63e4611b6;hpb=a3a484a54551f0208b6cf1e92bb7e5a3ee1a72f3 diff --git a/qcsrc/client/hud/hud.qh b/qcsrc/client/hud/hud.qh index d7b4585b70..5087fa5269 100644 --- a/qcsrc/client/hud/hud.qh +++ b/qcsrc/client/hud/hud.qh @@ -1,6 +1,6 @@ #pragma once -#include +#include bool HUD_Radar_Clickable(); void HUD_Radar_Mouse(); @@ -280,9 +280,9 @@ REGISTER_HUD_PANEL(SCOREBOARD, Scoreboard_Draw, scoreboard, PANEL_CO panel_bg_color = autocvar_hud_panel_bg_color; \ } else { \ if (panel_bg_color_str == "shirt") { \ - panel_bg_color = colormapPaletteColor(floor(stof(getplayerkeyvalue(current_player, "colors")) / 16), 0); \ + panel_bg_color = colormapPaletteColor(floor(entcs_GetClientColors(current_player) / 16), 0); \ } else if (panel_bg_color_str == "pants") { \ - panel_bg_color = colormapPaletteColor(stof(getplayerkeyvalue(current_player, "colors")) % 16, 1); \ + panel_bg_color = colormapPaletteColor(entcs_GetClientColors(current_player) % 16, 1); \ } else { \ panel_bg_color = stov(panel_bg_color_str); \ } \