]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud.qc
use the bigfont for killnotify; more font size snapping to prevent blurry fonts
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud.qc
index 1226c252cccd1fab358f082bde6884507acdc143..d489955abd7a27be7f1f5e0054730c61383caf2e 100644 (file)
@@ -3134,6 +3134,8 @@ void HUD_Notify (void)
        if(!autocvar_hud_panel_notify && !autocvar__hud_configure)
                return;
 
+       drawfont = hud_bigfont;
+
        active_panel = HUD_PANEL_NOTIFY;
        HUD_Panel_UpdateCvars(notify);
        vector pos, mySize;
@@ -3424,6 +3426,8 @@ void HUD_Notify (void)
                        }
                }
        }
+
+       drawfont = hud_font;
 }
 
 // Timer (#5)
@@ -5216,6 +5220,8 @@ void HUD_Main (void)
                }
        }
 
+    current_player = (spectatee_status > 0) ? spectatee_status : player_localentnum;
+
        // draw the dock
        if(autocvar_hud_dock != "" && autocvar_hud_dock != "0")
        {
@@ -5223,7 +5229,7 @@ void HUD_Main (void)
                vector color;
                float hud_dock_color_team = autocvar_hud_dock_color_team;
                if((teamplay) && hud_dock_color_team) {
-                       f = stof(getplayerkey(player_localentnum - 1, "colors"));
+                       f = stof(getplayerkey(current_player - 1, "colors"));
                        color = colormapPaletteColor(mod(f, 16), 1) * hud_dock_color_team;
                }
                else if(autocvar_hud_configure_teamcolorforced && autocvar__hud_configure && hud_dock_color_team) {
@@ -5233,11 +5239,11 @@ void HUD_Main (void)
                {
                        string hud_dock_color = autocvar_hud_dock_color;
                        if(hud_dock_color == "shirt") {
-                               f = stof(getplayerkey(player_localentnum - 1, "colors"));
+                               f = stof(getplayerkey(current_player - 1, "colors"));
                                color = colormapPaletteColor(floor(f / 16), 0);
                        }
                        else if(hud_dock_color == "pants") {
-                               f = stof(getplayerkey(player_localentnum - 1, "colors"));
+                               f = stof(getplayerkey(current_player - 1, "colors"));
                                color = colormapPaletteColor(mod(f, 16), 1);
                        }
                        else