Remove dead assignments

This commit is contained in:
Yamagi Burmeister 2012-06-02 13:21:22 +02:00
parent afd2f4538c
commit 1deb069085
2 changed files with 1 additions and 7 deletions

View file

@ -774,7 +774,6 @@ Jorg_CheckAttack(edict_t *self)
vec3_t temp;
float chance;
trace_t tr;
qboolean enemy_infront;
int enemy_range;
float enemy_yaw;
@ -802,7 +801,6 @@ Jorg_CheckAttack(edict_t *self)
}
}
enemy_infront = infront(self, self->enemy);
enemy_range = range(self, self->enemy);
VectorSubtract(self->enemy->s.origin, self->s.origin, temp);
enemy_yaw = vectoyaw(temp);

View file

@ -461,7 +461,7 @@ void
G_SetStats(edict_t *ent)
{
gitem_t *item;
int index, cells;
int index, cells = 0;
int power_armor_type;
if (!ent)
@ -469,8 +469,6 @@ G_SetStats(edict_t *ent)
return;
}
cells = 0;
/* health */
ent->client->ps.stats[STAT_HEALTH_ICON] = level.pic_health;
ent->client->ps.stats[STAT_HEALTH] = ent->health;
@ -489,8 +487,6 @@ G_SetStats(edict_t *ent)
ent->client->pers.inventory[ent->client->ammo_index];
}
cells = 0;
/* armor */
power_armor_type = PowerArmorType(ent);