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

Function teamscorecmp

source/src/scoreboard.cpp:128–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128static int teamscorecmp(const teamscore *x, const teamscore *y)
129{
130 if(x->flagscore > y->flagscore) return -1;
131 if(x->flagscore < y->flagscore) return 1;
132 if(x->frags > y->frags) return -1;
133 if(x->frags < y->frags) return 1;
134 if(x->deaths < y->deaths) return -1;
135 return 0;
136}
137
138static int scorecmp(playerent **x, playerent **y)
139{

Callers 2

renderscoresFunction · 0.85
winnersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected