]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/scoreboard.qc
Fixed missing centerprints, better alignement in scoreboard for secrets
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / scoreboard.qc
index 1e24e8272d0881084893da67cc65f95521a5a783..fb907555c21f22769564c670ae93e0e00495abe7 100644 (file)
@@ -1055,9 +1055,9 @@ vector HUD_DrawScoreboardAccuracyStats(vector pos, vector rgb, vector bg_size)
 
 vector HUD_DrawKeyValue(vector pos, string key, string value) {
        float px = pos_x;
-       pos_x += hud_fontsize_x;
+       pos_x += hud_fontsize_x * 0.25;
        drawstring(pos, key, hud_fontsize, '1 1 1', scoreboard_alpha_fg, DRAWFLAG_NORMAL);
-       pos_x = xmax - stringwidth(value, FALSE, hud_fontsize) - hud_fontsize_x;
+       pos_x = xmax - stringwidth(value, FALSE, hud_fontsize) - hud_fontsize_x * 0.25;
        drawstring(pos, value, hud_fontsize, '1 1 1', scoreboard_alpha_fg, DRAWFLAG_NORMAL);
        pos_x = px;
        pos_y+= hud_fontsize_y;