From: Samual Date: Thu, 20 Oct 2011 01:57:16 +0000 (-0400) Subject: Centerprints only go DOWN if needed when scoreboard is active, there's no reason... X-Git-Tag: xonotic-v0.6.0~35^2~78^2~7^2~24 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=44116470d88ca1215739f1cfbef5a50682b1d148;p=xonotic%2Fxonotic-data.pk3dir.git Centerprints only go DOWN if needed when scoreboard is active, there's no reason to make them go up too :P --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index b69163c95..0ceb4735c 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -4615,9 +4615,14 @@ void HUD_CenterPrint (void) if (scoreboard_bottom >= 0.96 * vid_conheight) return; vector target_pos; + target_pos = eY * scoreboard_bottom + eX * 0.5 * (vid_conwidth - panel_size_x); - panel_pos = panel_pos + (target_pos - panel_pos) * sqrt(scoreboard_fade_alpha); - panel_size_y = min(panel_size_y, vid_conheight - scoreboard_bottom); + + if(target_pos_y > panel_pos_y) + { + panel_pos = panel_pos + (target_pos - panel_pos) * sqrt(scoreboard_fade_alpha); + panel_size_y = min(panel_size_y, vid_conheight - scoreboard_bottom); + } } HUD_Panel_DrawBg(1);