fixed ctf teamscore display
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1804 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -84,7 +84,8 @@ void renderteamscore(void *menu, teamscore *t)
|
||||
}
|
||||
sline &line = scorelines.add();
|
||||
s_sprintfd(plrs)("(%d %s)", t->teammembers.length(), t->teammembers.length() == 1 ? "player" : "players");
|
||||
if(m_teammode) s_sprintf(line.s)("%d\t%d\t\t\t\t%s\t\t%s", t->frags, t->deaths, team_string(t->team), plrs);
|
||||
if(m_ctf) s_sprintf(line.s)("%d\t%d\t%d\t\t\t\t%s\t\t%s", t->flagscore, t->frags, t->deaths, team_string(t->team), plrs);
|
||||
else if(m_teammode) s_sprintf(line.s)("%d\t%d\t\t\t\t%s\t\t%s", t->frags, t->deaths, team_string(t->team), plrs);
|
||||
static color teamcolors[2] = { color(1.0f, 0, 0, 0.2f), color(0, 0, 1.0f, 0.2f) };
|
||||
line.bgcolor = &teamcolors[t->team];
|
||||
loopv(t->teammembers) renderscore(menu, t->teammembers[i]);
|
||||
|
||||
Reference in New Issue
Block a user