Quake 2 Oop Conversion Project - Source Diff 3.05 vs 3.14 - g_ai.c
diff -s -r q2_305/g_ai.c q2_314/g_ai.c

Left File < - 3.05/g_ai.c
Right File > - 3.14/g_ai.c
Back to Index
3d2
< #include <assert.h>
46c45
< if (check >= game.maxclients)
---
> if (check > game.maxclients)
397c396
< if (self->goalentity)
---
> if (self->goalentity && self->goalentity->inuse && self->goalentity->classname)
603c602
< tr = gi.trace (spot1, NULL, NULL, spot2, self, CONTENTS_SOLID|CONTENTS_MONSTER|CONTENTS_SLIME|CONTENTS_LAVA);
---
> tr = gi.trace (spot1, NULL, NULL, spot2, self, CONTENTS_SOLID|CONTENTS_MONSTER|CONTENTS_SLIME|CONTENTS_LAVA|CONTENTS_WINDOW);
656c655
< else if (skill->value == 2)
---
> else if (skill->value >= 2)
909,911d907
< assert (self->health > 0);
< assert ((self->monsterinfo.aiflags & AI_STAND_GROUND) == 0);
<
954a951,957
> // coop will change to another enemy if visible
> if (coop->value)
> { // FIXME: insane guys get mad with this, which causes crashes!
> if (FindTarget (self))
> return;
> }
>
1078,1079c1081,1082
< VectorCopy (left_target, self->goalentity->s.origin);
< VectorCopy (left_target, self->monsterinfo.last_sighting);
---
> VectorCopy (right_target, self->goalentity->s.origin);
> VectorCopy (right_target, self->monsterinfo.last_sighting);