*** 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:
@@ -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(), "");
|
||||
|
||||
Reference in New Issue
Block a user