From aa8e338bc4d893696fae7a46b61df93d4e8e2bbe Mon Sep 17 00:00:00 2001 From: driAn Date: Fri, 18 Apr 2008 20:06:34 +0000 Subject: [PATCH] fixed ctf teamscore display git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1804 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/scoreboard.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/scoreboard.cpp b/source/src/scoreboard.cpp index 32bed1d7..81e145d0 100644 --- a/source/src/scoreboard.cpp +++ b/source/src/scoreboard.cpp @@ -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]);