mirror of
https://github.com/yquake2/xatrix.git
synced 2025-02-24 04:41:58 +00:00
Merge pull request #46 from BjossiAlfreds/fixbot-stuck2
Small hotfix to make fixbot unstucking logic reachable
This commit is contained in:
commit
632d972c78
1 changed files with 6 additions and 7 deletions
|
@ -397,12 +397,10 @@ use_scanner(edict_t *self)
|
|||
if (VectorLength(vec) < 56)
|
||||
{
|
||||
self->monsterinfo.currentmove = &fixbot_move_weld_start;
|
||||
return;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (strcmp(self->goalentity->classname, "bot_goal") == 0)
|
||||
else if (strcmp(self->goalentity->classname, "bot_goal") == 0)
|
||||
{
|
||||
VectorSubtract(self->s.origin, self->goalentity->s.origin, vec);
|
||||
|
||||
|
@ -411,10 +409,11 @@ use_scanner(edict_t *self)
|
|||
self->goalentity->nextthink = level.time + 0.1;
|
||||
self->goalentity->think = G_FreeEdict;
|
||||
self->goalentity = self->enemy = NULL;
|
||||
self->monsterinfo.currentmove = &fixbot_move_stand;
|
||||
}
|
||||
|
||||
return;
|
||||
self->monsterinfo.currentmove = &fixbot_move_stand;
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
VectorSubtract(self->s.origin, self->s.old_origin, vec);
|
||||
|
|
Loading…
Reference in a new issue