*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@919 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-04-04 22:59:01 +00:00
parent 5a1cf69b7f
commit b64f106f42
6 changed files with 77 additions and 56 deletions
+7 -1
View File
@@ -67,7 +67,7 @@ void addteamscore(playerent *d)
teamscores.add(teamscore(d->team, d->frags, m_ctf ? d->flagscore : 0));
}
void renderscores()
void renderscores(bool init)
{
void *menu = m_ctf ? ctfmenu : (m_teammode ? teammenu : scoremenu);
scorelines.setsize(0);
@@ -78,6 +78,12 @@ void renderscores()
scores.sort(scorecmp);
loopv(scores) renderscore(menu, scores[i], scores[i]->clientnum);
if(init)
{
int sel = scores.find(player1);
if(sel>=0) menuselect(menu, sel);
}
if(m_teammode)
{
menumanual(menu, scorelines.length(), "");