mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-10 06:42:21 +00:00
- 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:
parent
5af197b73c
commit
ae3ae9e72c
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue