Scoreboard: skip observers/spectators from counting height for centerscores

This commit is contained in:
Marco Cawthorne 2021-03-27 07:52:24 +01:00
parent c1c1892525
commit 024d19d1c1

View file

@ -171,11 +171,12 @@ Scores_Draw(void)
/* calculate all valid entries */
for (int i = -1; i > -32; i--) {
if (getplayerkeyvalue(i, "name")) {
break;
if (getplayerkeyvalue(i, "name") && getplayerkeyfloat(i, "*spec") != 1) {
c += 10;
}
c += 10;
}
c += (serverkeyfloat("teams") * 10);
pos = video_mins + [(video_res[0] / 2) - 145, (video_res[1] / 2) - c];
} else {
pos = video_mins + [(video_res[0] / 2) - 145, 30];