bottom align mini DM overlay when not fully utilized
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Jun 2007 21:42:10 +0000 (21:42 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Jun 2007 21:42:10 +0000 (21:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7390 d7cf8633-e32d-0410-b094-e92efae38249

sbar.c

diff --git a/sbar.c b/sbar.c
index 65f0cd2..cae3559 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -1748,13 +1748,12 @@ void Sbar_MiniDeathmatchOverlay (int x, int y)
        }
        else
        {
-               if (Sbar_IsTeammatch ())
-               {
-                       // show team scores first
-                       for (j = 0;j < teamlines && y < vid_conheight.integer;j++)
-                               y += (int)Sbar_PrintScoreboardItem((teams + teamsort[j]), x, y);
-                       y += teamsep;
-               }
+               if(range_end - i < numlines) // won't draw to bottom?
+                       y += 8 * (numlines - (range_end - i)); // bottom align
+               // show team scores first
+               for (j = 0;j < teamlines && y < vid_conheight.integer;j++)
+                       y += (int)Sbar_PrintScoreboardItem((teams + teamsort[j]), x, y);
+               y += teamsep;
                for (;i < range_end && y < vid_conheight.integer;i++)
                        y += (int)Sbar_PrintScoreboardItem(cl.scores + fragsort[i], x, y);
        }