From 87e8d8a11f468c358719b3ff91b360538bbaf48b Mon Sep 17 00:00:00 2001 From: FruitieX Date: Wed, 4 Aug 2010 18:29:43 +0300 Subject: [PATCH] actually, fit in 2 lines of centerprint in the scoreboard since the new info wont fit in otherwise --- defaultXonotic.cfg | 2 +- qcsrc/client/hud.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index a8e9fe969..f54fdd0f1 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -1519,7 +1519,7 @@ set capturelimit 0 // hud: font size seta hud_fontsize 11 seta hud_fontsize_spec 16 -seta scr_centersize 11 +seta scr_centersize 12 seta hud_width 560 // alias hud_font "loadfont user1 ${1},gfx/fallback ${2-}; loadfont user2 ${1}-big ${2-}; scoreboard_columns_set" alias sbar_font "set _requested_sbar_font \"${*}\"" diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 962657db7..9360246df 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -284,7 +284,7 @@ void HUD_DrawCenterPrint (void) sz = 0.8 + (a / 5); - if(centerprint_num > 1 && HUD_WouldDrawScoreboard()) + if(centerprint_num * cvar("scr_centersize") > 24 && HUD_WouldDrawScoreboard()) // 24 = height of Scoreboard text { centerprint_start_y = scoreboard_bottom + centerprint_fontsize_y; } -- 2.39.2