strzone a tempstring before storing in a global! create a new cvar for scaling up...
authorFruitieX <rasse@rasse-laptop.(none)>
Thu, 21 Oct 2010 19:07:02 +0000 (22:07 +0300)
committerFruitieX <rasse@rasse-laptop.(none)>
Thu, 21 Oct 2010 19:07:02 +0000 (22:07 +0300)
defaultXonotic.cfg
qcsrc/client/View.qc
qcsrc/client/scoreboard.qc

index 8d40e2ff4fddb2595154dfe0b7853e43bf9e5147..b45dc46a371f6c97fe33643bf3ff1a2a1dcb82eb 100644 (file)
@@ -1425,6 +1425,7 @@ seta scoreboard_highlight_alpha 0.10 "highlight alpha value (depends on hud_scor
 seta scoreboard_highlight_alpha_self 0.25 "self highlight alpha value"
 seta scoreboard_offset_left 0.04 "how many pixels the scoreboard is offset from the left screen edge"
 seta scoreboard_offset_right 0.148 "how many pixels the scoreboard is offset from the right screen edge"
+seta scoreboard_bg_scale 0.1 "scale for the tiled scoreboard background"
 
 // for menu server list (eventually make them have engine support?)
 seta menu_slist_showfull 1 "show servers even if they are full and have no slots to join"
index ea257312ac85206139a4a19849e4d28111daf20e..215aa524eb52fbf3d1fbb3b464e1abe84e4fdc68 100644 (file)
@@ -1265,7 +1265,9 @@ void CSQC_common_hud(void)
                        if(cvar_string("hud_panel_weapons_accuracy_color_levels") != acc_color_levels)
                        if(!(gametype == GAME_RACE || gametype == GAME_CTS))
                        {
-                               acc_color_levels = cvar_string("hud_panel_weapons_accuracy_color_levels");
+                               if(acc_color_levels)
+                                       strunzone(acc_color_levels);
+                               acc_color_levels = strzone(cvar_string("hud_panel_weapons_accuracy_color_levels"));
                                acc_levels = tokenize(acc_color_levels);
                                if (acc_levels > MAX_ACCURACY_LEVELS)
                                        acc_levels = MAX_ACCURACY_LEVELS;
index 65e86fd340c78bbebd3e9a14a5ee2ee176270d33..9e07eed7e2d59b13cfdfeb20d7d0b259a1cd2ffd 100644 (file)
@@ -1142,7 +1142,7 @@ void HUD_DrawScoreboard()
        drawfont = hud_font;
 
        // Draw the scoreboard
-       vector bg_size = drawgetimagesize("gfx/scoreboard/scoreboard_bg");
+       vector bg_size = drawgetimagesize("gfx/scoreboard/scoreboard_bg") * cvar("scoreboard_bg_scale");
 
        if(teamplay)
        {