From e58ee52293813189e9e1f186012bbd8b3766989d Mon Sep 17 00:00:00 2001 From: FruitieX Date: Wed, 4 Aug 2010 19:16:18 +0300 Subject: [PATCH] fix team score --- defaultXonotic.cfg | 2 +- qcsrc/client/scoreboard.qc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index c3dd61ef5..4bfda43cd 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -1391,7 +1391,7 @@ seta scoreboard_fadeoutspeed 5 "speed at which scoreboard fades out, higher is f seta scoreboard_highlight 1 "enable highlighting for rows and columns in the scoreboard" seta scoreboard_highlight_alpha 0.10 "highlight alpha value (depends on hud_scoreboard_highlight 1)" seta scoreboard_highlight_alpha_self 0.25 "self highlight alpha value" -seta scoreboard_offset_left 0.02 "how many pixels the scoreboard is offset from the left screen edge" +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" // for menu server list (eventually make them have engine support?) diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index d40dea006..0566ec14a 100644 --- a/qcsrc/client/scoreboard.qc +++ b/qcsrc/client/scoreboard.qc @@ -1137,10 +1137,10 @@ void HUD_DrawScoreboard() continue; rgb = GetTeamRGB(tm.team); - drawstring(pos - '9.5 0 0' * hud_fontsize_y + '0 1 0' * hud_fontsize_y, ftos(tm.(teamscores[ts_primary])), '1 1 0' * hud_fontsize_y * 1.5, rgb, scoreboard_alpha_fg, DRAWFLAG_NORMAL); + drawstring(pos - '2 0 0' * hud_fontsize_x + '0 1 0' * hud_fontsize_y, ftos(tm.(teamscores[ts_primary])), '1 1 0' * hud_fontsize_y * 1.5, rgb, scoreboard_alpha_fg, DRAWFLAG_NORMAL); if(ts_primary != ts_secondary) - drawstring(pos - '7.5 0 0' * hud_fontsize_y + '0 2.5 0' * hud_fontsize_y, ftos(tm.(teamscores[ts_secondary])), '1 1 0' * hud_fontsize_y * 1, rgb, scoreboard_alpha_fg, DRAWFLAG_NORMAL); + drawstring(pos - '2 0 0' * hud_fontsize_x + '0 2.5 0' * hud_fontsize_y, ftos(tm.(teamscores[ts_secondary])), '1 1 0' * hud_fontsize_y * 1, rgb, scoreboard_alpha_fg, DRAWFLAG_NORMAL); pos = HUD_Scoreboard_MakeTable(pos, tm, rgb, bg_size); } -- 2.39.2