*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1055 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -34,7 +34,7 @@ static int scorecmp(const playerent **x, const playerent **y)
|
||||
if((*x)->flagscore < (*y)->flagscore) return 1;
|
||||
if((*x)->frags > (*y)->frags) return -1;
|
||||
if((*x)->frags < (*y)->frags) return 1;
|
||||
return 0;
|
||||
return strcmp((*x)->name, (*y)->name);
|
||||
}
|
||||
|
||||
struct teamscore
|
||||
@@ -51,7 +51,7 @@ static int teamscorecmp(const teamscore *x, const teamscore *y)
|
||||
if(x->flagscore < y->flagscore) return 1;
|
||||
if(x->score > y->score) return -1;
|
||||
if(x->score < y->score) return 1;
|
||||
return 0;
|
||||
return strcmp(x->team, y->team);
|
||||
}
|
||||
|
||||
vector<teamscore> teamscores;
|
||||
|
||||
Reference in New Issue
Block a user