From 0591039958bcbec69f700b69dfe4939672dbf8c5 Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 4 Jun 2007 21:42:10 +0000 Subject: [PATCH] bottom align mini DM overlay when not fully utilized git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7390 d7cf8633-e32d-0410-b094-e92efae38249 --- sbar.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sbar.c b/sbar.c index 65f0cd29..cae35591 100644 --- 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); } -- 2.39.2