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

View file

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