]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Centerprints only go DOWN if needed when scoreboard is active, there's no reason...
authorSamual <samual@xonotic.org>
Thu, 20 Oct 2011 01:57:16 +0000 (21:57 -0400)
committerSamual <samual@xonotic.org>
Thu, 20 Oct 2011 01:57:16 +0000 (21:57 -0400)
qcsrc/client/hud.qc

index b69163c9582bc437cded89032bc65cac78bd8203..0ceb4735ce4f26b709039a77d86e62f9fc6e714e 100644 (file)
@@ -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);