"Merge" V_ParseDamage

This commit is contained in:
Bill Currie 2012-06-02 13:44:29 +09:00
parent 7dd400d04a
commit 86ecab4ff7

View file

@ -223,7 +223,7 @@ V_DriftPitch (void)
void void
V_ParseDamage (void) V_ParseDamage (void)
{ {
entity_t *ent; entity_t *ent = &cl_entities[cl.viewentity];
float count, side; float count, side;
int armor, blood; int armor, blood;
vec3_t from, forward, right, up; vec3_t from, forward, right, up;
@ -261,8 +261,6 @@ V_ParseDamage (void)
} }
// calculate view angle kicks // calculate view angle kicks
ent = &cl_entities[cl.viewentity];
VectorSubtract (from, ent->origin, from); VectorSubtract (from, ent->origin, from);
VectorNormalize (from); VectorNormalize (from);