MCPcopy Create free account
hub / github.com/assaultcube/AC / loopv

Function loopv

source/src/scoreboard.cpp:469–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 7

scoreboard.cppFile · 0.70
calcteamscoresFunction · 0.70
renderdiscscoresFunction · 0.70
renderteamscoreFunction · 0.70
renderscoresFunction · 0.70
asciiscoresFunction · 0.70
winnersFunction · 0.70

Calls 4

team_stringFunction · 0.85
addstrFunction · 0.85
scorecmpFunction · 0.85
concatformatstringFunction · 0.85

Tested by

no test coverage detected