| 467 | addstr(t, e, text); |
| 468 | } |
| 469 | loopv(scores) |
| 470 | { |
| 471 | d = scores[i]; |
| 472 | // const char *sr = scoreratio(d->frags, d->deaths); |
| 473 | formatstring(team)(destjpg ? ", %s" : " %-4s", team_string(d->team, true)); |
| 474 | formatstring(flags)(destjpg ? "%d/" : " %4d ", d->flagscore); |
| 475 | if(destjpg) |
| 476 | formatstring(text)("%s%s (%s%d/%d)\n", d->name, m_teammode ? team : "", m_flags_ ? flags : "", d->frags, d->deaths); |
| 477 | else |
| 478 | formatstring(text)("%s %4d %4d %2d%s %s%s\n", m_flags_ ? flags : "", d->frags, d->deaths, d->clientnum, |
| 479 | m_teammode ? team : "", d->name, d->clientrole==CR_ADMIN ? " (admin)" : d==player1 ? " (you)" : ""); |
| 480 | addstr(t, e, text); |
| 481 | } |
| 482 | discscores.sort(discscorecmp); |
| 483 | loopv(discscores) |
| 484 | { |
no test coverage detected