demo playback fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1155 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-06-15 19:46:30 +00:00
parent 7a752f8302
commit 040fed8593
4 changed files with 6 additions and 3 deletions
+1 -2
View File
@@ -25,7 +25,6 @@ void renderscore(void *menu, playerent *d, int cn)
if(m_ctf) s_sprintf(s)("%d\t%d\t%d\t%s\t%d\t%s\t%s%s\t%d", d->flagscore, d->frags, d->lifesequence, d->state==CS_LAGGED ? "LAG" : lag, d->ping, d->team, status, colorname(d), cn);
else if(m_teammode) s_sprintf(s)("%d\t%d\t%s\t%d\t%s\t%s%s\t%d", d->frags, d->lifesequence, d->state==CS_LAGGED ? "LAG" : lag, d->ping, m_teammode ? d->team : "", status, colorname(d), cn);
else s_sprintf(s)("%d\t%d\t%s\t%d\t%s%s\t%d", d->frags, d->lifesequence, d->state==CS_LAGGED ? "LAG" : lag, d->ping, status, colorname(d), cn);
menumanual(menu, scorelines.length()-1, s);
}
static int scorecmp(const playerent **x, const playerent **y)
@@ -100,7 +99,7 @@ void renderscores(void *menu, bool init)
else s_sprintf(s)("[ %s: %d ]", teamscores[i].team, teamscores[i].score);
s_strcat(teamline, s);
}
menumanual(menu, scorelines.length(), teamline);
}
loopv(scorelines) menumanual(menu, i, scorelines[i].s);
}