Getting rid of compiler warnings

This commit is contained in:
Richard Allen 2012-10-13 18:11:42 +00:00
parent fb343c16f9
commit 0a1a63310f
3 changed files with 9 additions and 9 deletions

View file

@ -115,10 +115,10 @@ void CG_CreateTracer(int entity, vec3_t start, vec3_t end);
void CG_ShrapnelSpark(vec3_t source, vec3_t dest, float width, float length)
{
vec3_t forward, right;
polyVert_t verts[4];
// polyVert_t verts[4];
vec3_t line;
float len, begin, end;
vec3_t start, finish;
// vec3_t start, finish;
//vec3_t midpoint;
@ -136,8 +136,8 @@ void CG_ShrapnelSpark(vec3_t source, vec3_t dest, float width, float length)
if (end > len) {
end = len;
}
VectorMA(source, begin, forward, start);
VectorMA(source, end, forward, finish);
// VectorMA(source, begin, forward, start);
// VectorMA(source, end, forward, finish);
line[0] = DotProduct(forward, cg.refdef.viewaxis[1]);
line[1] = DotProduct(forward, cg.refdef.viewaxis[2]);
@ -146,7 +146,7 @@ void CG_ShrapnelSpark(vec3_t source, vec3_t dest, float width, float length)
VectorMA(right, -line[0], cg.refdef.viewaxis[2], right);
VectorNormalize(right);
VectorMA(finish, width, right, verts[0].xyz);
/* VectorMA(finish, width, right, verts[0].xyz);
verts[0].st[0] = 0;
verts[0].st[1] = 1;
verts[0].modulate[0] = 255;
@ -176,7 +176,7 @@ void CG_ShrapnelSpark(vec3_t source, vec3_t dest, float width, float length)
verts[3].modulate[0] = 255;
verts[3].modulate[1] = 255;
verts[3].modulate[2] = 255;
verts[3].modulate[3] = 255;
verts[3].modulate[3] = 255; */
//trap_R_AddPolyToScene(cgs.media.tracerShader, 4, verts);
CG_CreateTracer(ENTITYNUM_WORLD, source, dest);

View file

@ -46,7 +46,7 @@ void UpdateTournamentInfo(void)
{
int i;
gentity_t *player;
int playerClientNum;
// int playerClientNum;
//int n, accuracy, perfect, msglen;
int n, msglen;
char buf[32];
@ -70,7 +70,7 @@ void UpdateTournamentInfo(void)
if (!player || i == level.maxclients) {
return;
}
playerClientNum = i;
// playerClientNum = i;
CalculateRanks();

View file

@ -1188,7 +1188,7 @@ void player_die(gentity_t * self, gentity_t * inflictor, gentity_t * attacker, i
int anim, contents, killer, i, hurt;
char *killerName, *obit;
hurt = 0;
hurt = contents = 0;
//Blaze: Stop bleeding when dead
if (self->client) {
//Elder: drop the primed grenade