From 8ec97d7e34fc919b27a16e5f14a69ae1097daeb2 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 1 Jun 2007 11:45:44 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1055 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/scoreboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/scoreboard.cpp b/source/src/scoreboard.cpp index fc7ddf07..24834634 100644 --- a/source/src/scoreboard.cpp +++ b/source/src/scoreboard.cpp @@ -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 teamscores;