new scoreboard info for refs

This commit is contained in:
Bryce Hutchings 2002-08-24 07:59:23 +00:00
parent d5d862edda
commit 57e915e913

View file

@ -5,6 +5,9 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// //
// $Log$ // $Log$
// Revision 1.63 2002/08/24 07:59:23 niceass
// new scoreboard info for refs
//
// Revision 1.62 2002/08/22 03:29:36 niceass // Revision 1.62 2002/08/22 03:29:36 niceass
// countdown code added // countdown code added
// //
@ -215,22 +218,22 @@ static void CG_ParseScores(void)
cg.team1ready = atoi(CG_Argv(4)); cg.team1ready = atoi(CG_Argv(4));
cg.team2ready = atoi(CG_Argv(5)); cg.team2ready = atoi(CG_Argv(5));
cg.matchTime = atoi(CG_Argv(6)); cg.matchTime = atoi(CG_Argv(6));
cg.refID = atoi(CG_Argv(7));
memset(cg.scores, 0, sizeof(cg.scores)); memset(cg.scores, 0, sizeof(cg.scores));
for (i = 0; i < cg.numScores; i++) { for (i = 0; i < cg.numScores; i++) {
//Elder: Leave as-is ... sent zeros by server //Elder: Leave as-is ... sent zeros by server
cg.scores[i].client = atoi(CG_Argv(i * 11 + 8)); cg.scores[i].client = atoi(CG_Argv(i * 12 + 7));
cg.scores[i].score = atoi(CG_Argv(i * 11 + 9)); cg.scores[i].score = atoi(CG_Argv(i * 12 + 8));
cg.scores[i].ping = atoi(CG_Argv(i * 11 + 10)); cg.scores[i].ping = atoi(CG_Argv(i * 12 + 9));
cg.scores[i].time = atoi(CG_Argv(i * 11 + 11)); cg.scores[i].time = atoi(CG_Argv(i * 12 + 10));
cg.scores[i].scoreFlags = atoi(CG_Argv(i * 11 + 12)); cg.scores[i].scoreFlags = atoi(CG_Argv(i * 12 + 12));
powerups = atoi(CG_Argv(i * 11 + 13)); powerups = atoi(CG_Argv(i * 12 + 12));
cg.scores[i].accuracy = atoi(CG_Argv(i * 11 + 14)); cg.scores[i].accuracy = atoi(CG_Argv(i * 12 + 13));
cg.scores[i].damage = atoi(CG_Argv(i * 11 + 15)); cg.scores[i].damage = atoi(CG_Argv(i * 12 + 14));
cg.scores[i].alive = atoi(CG_Argv(i * 11 + 16)); cg.scores[i].alive = atoi(CG_Argv(i * 12 + 15));
cg.scores[i].captain = atoi(CG_Argv(i * 11 + 17)); cg.scores[i].captain = atoi(CG_Argv(i * 12 + 16));
cg.scores[i].sub = atoi(CG_Argv(i * 11 + 18)); cg.scores[i].sub = atoi(CG_Argv(i * 12 + 17));
cg.scores[i].referee = atoi(CG_Argv(i * 12 + 18));
if (cg.scores[i].client < 0 || cg.scores[i].client >= MAX_CLIENTS) { if (cg.scores[i].client < 0 || cg.scores[i].client >= MAX_CLIENTS) {
cg.scores[i].client = 0; cg.scores[i].client = 0;