mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-13 08:27:42 +00:00
scoreboard fix
This commit is contained in:
parent
cd0a5880e7
commit
c4d9b7dd69
1 changed files with 15 additions and 12 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.48 2002/06/10 20:56:38 niceass
|
||||
// scoreboard fix
|
||||
//
|
||||
// Revision 1.47 2002/06/10 14:02:31 slicer
|
||||
// Removed rq3_cmd : ROUND , associated to cg_RQ3_team_round_going that wasn't being used
|
||||
//
|
||||
|
@ -186,18 +189,18 @@ static void CG_ParseScores( void ) {
|
|||
memset( cg.scores, 0, sizeof( cg.scores ) );
|
||||
for ( i = 0 ; i < cg.numScores ; i++ ) {
|
||||
//Elder: Leave as-is ... sent zeros by server
|
||||
cg.scores[i].client = atoi( CG_Argv( i * 12 + 7 ) );
|
||||
cg.scores[i].score = atoi( CG_Argv( i * 12 + 8 ) );
|
||||
cg.scores[i].ping = atoi( CG_Argv( i * 12 + 9 ) );
|
||||
cg.scores[i].time = atoi( CG_Argv( i * 12 + 10) );
|
||||
cg.scores[i].scoreFlags = atoi( CG_Argv( i * 12 + 11) );
|
||||
powerups = atoi( CG_Argv( i * 12 + 12) );
|
||||
cg.scores[i].accuracy = atoi(CG_Argv(i * 12 + 13));
|
||||
cg.scores[i].deaths = atoi(CG_Argv(i * 12 + 14));
|
||||
cg.scores[i].damage = atoi(CG_Argv(i * 12 + 15));
|
||||
cg.scores[i].alive = atoi(CG_Argv(i * 12 + 16));
|
||||
cg.scores[i].captain = atoi(CG_Argv(i * 12 + 17));
|
||||
cg.scores[i].sub = atoi(CG_Argv(i * 12 + 18));
|
||||
cg.scores[i].client = atoi( CG_Argv( i * 12 + 8 ) );
|
||||
cg.scores[i].score = atoi( CG_Argv( i * 12 + 9 ) );
|
||||
cg.scores[i].ping = atoi( CG_Argv( i * 12 + 10) );
|
||||
cg.scores[i].time = atoi( CG_Argv( i * 12 + 11) );
|
||||
cg.scores[i].scoreFlags = atoi( CG_Argv( i * 12 + 12) );
|
||||
powerups = atoi( CG_Argv( i * 12 + 13) );
|
||||
cg.scores[i].accuracy = atoi(CG_Argv(i * 12 + 14));
|
||||
cg.scores[i].deaths = atoi(CG_Argv(i * 12 + 15));
|
||||
cg.scores[i].damage = atoi(CG_Argv(i * 12 + 16));
|
||||
cg.scores[i].alive = atoi(CG_Argv(i * 12 + 17));
|
||||
cg.scores[i].captain = atoi(CG_Argv(i * 12 + 18));
|
||||
cg.scores[i].sub = atoi(CG_Argv(i * 12 + 19));
|
||||
|
||||
if ( cg.scores[i].client < 0 || cg.scores[i].client >= MAX_CLIENTS ) {
|
||||
cg.scores[i].client = 0;
|
||||
|
|
Loading…
Reference in a new issue