From: divverent Date: Mon, 4 Jun 2007 21:42:10 +0000 (+0000) Subject: bottom align mini DM overlay when not fully utilized X-Git-Tag: xonotic-v0.1.0preview~3070 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0591039958bcbec69f700b69dfe4939672dbf8c5;p=xonotic%2Fdarkplaces.git 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 --- 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); }