- Prüfe ob "run" im Target-Code NULL ist

- Prüfe ob "plane" beim Anheften der Proxy-Mine NULL ist
This commit is contained in:
Yamagi Burmeister 2010-12-27 15:47:09 +00:00
parent 5af197b73c
commit ae3ae9e72c
2 changed files with 5 additions and 1 deletions

View file

@ -389,7 +389,8 @@ void HuntTarget (edict_t *self)
if (self->monsterinfo.aiflags & AI_STAND_GROUND)
self->monsterinfo.stand (self);
else
self->monsterinfo.run (self);
if(self->monsterinfo.run)
self->monsterinfo.run (self);
VectorSubtract (self->enemy->s.origin, self->s.origin, vec);
self->ideal_yaw = vectoyaw(vec);
// wait a while before first attack

View file

@ -311,6 +311,9 @@ void prox_land (edict_t *ent, edict_t *other, cplane_t *plane, csurface_t *surf)
return;
}
if (plane == NULL)
return;
if (plane->normal != 0)
{
VectorMA (ent->s.origin, -10.0, plane->normal, land_point);