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

Function scorecmp

source/src/scoreboard.cpp:138–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138static int scorecmp(playerent **x, playerent **y)
139{
140 if((*x)->flagscore > (*y)->flagscore) return -1;
141 if((*x)->flagscore < (*y)->flagscore) return 1;
142 if((*x)->frags > (*y)->frags) return -1;
143 if((*x)->frags < (*y)->frags) return 1;
144 if((*x)->deaths > (*y)->deaths) return 1;
145 if((*x)->deaths < (*y)->deaths) return -1;
146 if((*x)->lifesequence > (*y)->lifesequence) return 1;
147 if((*x)->lifesequence < (*y)->lifesequence) return -1;
148 return 0;
149}
150
151static int discscorecmp(const discscore *x, const discscore *y)
152{

Callers 1

loopvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected