mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-29 23:42:25 +00:00
Remove an unnecessary check.
This was found by Clangs code analyzer.
This commit is contained in:
parent
b58a3ae131
commit
d294e86a45
1 changed files with 0 additions and 11 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue