git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7390
d7cf8633-e32d-0410-b094-
e92efae38249
- 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);
}
for (;i < range_end && y < vid_conheight.integer;i++)
y += (int)Sbar_PrintScoreboardItem(cl.scores + fragsort[i], x, y);
}