mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-03-13 22:22:13 +00:00
Crash bug :/
This commit is contained in:
parent
c8e3138029
commit
d600188395
1 changed files with 6 additions and 2 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.27 2002/05/04 01:21:47 makro
|
||||
// Crash bug :/
|
||||
//
|
||||
// Revision 1.26 2002/05/04 01:03:42 makro
|
||||
// Bots
|
||||
//
|
||||
|
@ -289,7 +292,7 @@ bot_moveresult_t BotMoveTo(bot_state_t *bs, vec3_t dest) {
|
|||
//initialize the movement state
|
||||
BotSetupForMovement(bs);
|
||||
//trap_BotMoveInDirection(bs->ms, dir, dist, MOVE_RUN);
|
||||
trap_BotPushGoal(bs->gs, &goal);
|
||||
//trap_BotPushGoal(bs->gs, &goal);
|
||||
//move towards the goal
|
||||
trap_BotMoveToGoal(&moveresult, bs->ms, &goal, bs->tfl);
|
||||
//if movement failed
|
||||
|
@ -299,7 +302,8 @@ bot_moveresult_t BotMoveTo(bot_state_t *bs, vec3_t dest) {
|
|||
//G_Printf("BotMoveTo: moveresult.type = %i\n", moveresult.type);
|
||||
//reset the avoid reach, otherwise bot is stuck in current area
|
||||
trap_BotResetAvoidReach(bs->ms);
|
||||
bs->activatestack->time = 0;
|
||||
if (bs->activatestack != NULL)
|
||||
bs->activatestack->time = 0;
|
||||
}
|
||||
//G_Printf("BotMoveTo: moveresult.flags = %i\n", moveresult.flags);
|
||||
return moveresult;
|
||||
|
|
Loading…
Reference in a new issue