summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_draw.c4
-rw-r--r--src/cgame/cg_local.h3
-rw-r--r--src/cgame/cg_players.c3
-rw-r--r--src/cgame/cg_servercmds.c12
4 files changed, 7 insertions, 15 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index cb990e4a..774b10c4 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -284,7 +284,7 @@ void CG_Text_Paint( float x, float y, float scale, vec4_t color, const char *tex
==============
CG_DrawFieldPadded
-Draws large numbers for status bar and powerups
+Draws large numbers for status bar
==============
*/
static void CG_DrawFieldPadded( int x, int y, int width, int cw, int ch, int value )
@@ -364,7 +364,7 @@ static void CG_DrawFieldPadded( int x, int y, int width, int cw, int ch, int val
==============
CG_DrawField
-Draws large numbers for status bar and powerups
+Draws large numbers for status bar
==============
*/
void CG_DrawField( float x, float y, int width, float cw, float ch, int value )
diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h
index dba61fd3..4952eef4 100644
--- a/src/cgame/cg_local.h
+++ b/src/cgame/cg_local.h
@@ -725,8 +725,6 @@ typedef struct
int teamTask; // task in teamplay (offence/defence)
qboolean teamLeader; // true when this is a team leader
- int powerups; // so can display quad/flag status
-
int medkitUsageTime;
int invulnerabilityStartTime;
int invulnerabilityStopTime;
@@ -1626,7 +1624,6 @@ void CG_DrawField( float x, float y, int width, float cw, float ch, int v
void CG_Player( centity_t *cent );
void CG_Corpse( centity_t *cent );
void CG_ResetPlayerEntity( centity_t *cent );
-void CG_AddRefEntityWithPowerups( refEntity_t *ent, int powerups, int team );
void CG_NewClientInfo( int clientNum );
void CG_PrecacheClientInfo( pClass_t class, char *model, char *skin );
sfxHandle_t CG_CustomSound( int clientNum, const char *soundName );
diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c
index bc3aaa47..f0800fa5 100644
--- a/src/cgame/cg_players.c
+++ b/src/cgame/cg_players.c
@@ -2379,7 +2379,6 @@ void CG_Corpse( centity_t *cent )
legs.nonNormalizedAxes = qtrue;
}
- //CG_AddRefEntityWithPowerups( &legs, es->misc, ci->team );
trap_R_AddRefEntityToScene( &legs );
// if the model failed, allow the default nullmodel to be displayed
@@ -2404,7 +2403,6 @@ void CG_Corpse( centity_t *cent )
torso.shadowPlane = shadowPlane;
torso.renderfx = renderfx;
- //CG_AddRefEntityWithPowerups( &torso, es->misc, ci->team );
trap_R_AddRefEntityToScene( &torso );
//
@@ -2423,7 +2421,6 @@ void CG_Corpse( centity_t *cent )
head.shadowPlane = shadowPlane;
head.renderfx = renderfx;
- //CG_AddRefEntityWithPowerups( &head, es->misc, ci->team );
trap_R_AddRefEntityToScene( &head );
}
}
diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c
index 7fb3e060..811733e7 100644
--- a/src/cgame/cg_servercmds.c
+++ b/src/cgame/cg_servercmds.c
@@ -65,7 +65,6 @@ static void CG_ParseScores( void )
cg.scores[ i ].client = 0;
cgs.clientinfo[ cg.scores[ i ].client ].score = cg.scores[ i ].score;
- cgs.clientinfo[ cg.scores[ i ].client ].powerups = 0;
cg.scores[ i ].team = cgs.clientinfo[ cg.scores[ i ].client ].team;
}
@@ -86,15 +85,14 @@ static void CG_ParseTeamInfo( void )
for( i = 0; i < numSortedTeamPlayers; i++ )
{
- client = atoi( CG_Argv( i * 6 + 2 ) );
+ client = atoi( CG_Argv( i * 5 + 2 ) );
sortedTeamPlayers[ i ] = client;
- cgs.clientinfo[ client ].location = atoi( CG_Argv( i * 6 + 3 ) );
- cgs.clientinfo[ client ].health = atoi( CG_Argv( i * 6 + 4 ) );
- cgs.clientinfo[ client ].armor = atoi( CG_Argv( i * 6 + 5 ) );
- cgs.clientinfo[ client ].curWeapon = atoi( CG_Argv( i * 6 + 6 ) );
- cgs.clientinfo[ client ].powerups = atoi( CG_Argv( i * 6 + 7 ) );
+ cgs.clientinfo[ client ].location = atoi( CG_Argv( i * 5 + 3 ) );
+ cgs.clientinfo[ client ].health = atoi( CG_Argv( i * 5 + 4 ) );
+ cgs.clientinfo[ client ].armor = atoi( CG_Argv( i * 5 + 5 ) );
+ cgs.clientinfo[ client ].curWeapon = atoi( CG_Argv( i * 5 + 6 ) );
}
}