Remove an unnecessary check.

This was found by Clangs code analyzer.
This commit is contained in:
Yamagi Burmeister 2016-12-17 10:49:52 +01:00
parent b58a3ae131
commit d294e86a45

View file

@ -393,11 +393,6 @@ prox_land(edict_t *ent, edict_t *other, cplane_t *plane, csurface_t *surf)
return; return;
} }
if (plane == NULL)
{
return;
}
VectorMA(ent->s.origin, -10.0, plane->normal, land_point); VectorMA(ent->s.origin, -10.0, plane->normal, land_point);
if (gi.pointcontents(land_point) & (CONTENTS_SLIME | CONTENTS_LAVA)) if (gi.pointcontents(land_point) & (CONTENTS_SLIME | CONTENTS_LAVA))
@ -426,12 +421,6 @@ prox_land(edict_t *ent, edict_t *other, cplane_t *plane, csurface_t *surf)
float backoff, change; float backoff, change;
int i; int i;
if (!plane->normal) /* this happens if you hit a point object, maybe other cases */
{
Prox_Explode(ent);
return;
}
if ((other->movetype == MOVETYPE_PUSH) && (plane->normal[2] > 0.7)) if ((other->movetype == MOVETYPE_PUSH) && (plane->normal[2] > 0.7))
{ {
stick_ok = 1; stick_ok = 1;