sort scores in team modes too

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1845 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-05-03 19:40:50 +00:00
parent 722d70907b
commit 81e0783a5d
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -143,7 +143,8 @@ void renderscores(void *menu, bool init)
teamscores[team_int(players[i]->team)].addscore(players[i]);
}
teamscores[team_int(player1->team)].addscore(player1);
loopi(2) teamscores[i].teammembers.sort(scorecmp);
int sort = teamscorecmp(&teamscores[TEAM_CLA], &teamscores[TEAM_RVSF]);
loopi(2) renderteamscore(menu, &teamscores[sort < 0 ? i : (i+1)&1]);
}