| 136 | } |
| 137 | |
| 138 | static 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 | |
| 151 | static int discscorecmp(const discscore *x, const discscore *y) |
| 152 | { |