projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6ec722
)
Bot AI: fix bots sometimes moving to a random waypoint on respawn after they fall...
author
terencehill <piuntn@gmail.com>
Thu, 24 May 2018 18:38:32 +0000
(20:38 +0200)
committer
terencehill <piuntn@gmail.com>
Thu, 24 May 2018 18:38:32 +0000
(20:38 +0200)
qcsrc/server/bot/default/bot.qc
patch
|
blob
|
history
diff --git
a/qcsrc/server/bot/default/bot.qc
b/qcsrc/server/bot/default/bot.qc
index b4272e3e0648224f6de70f8a1e2bd8f871bb0b5c..b69cbf8ab7dd98df667b266b56cd4f26d0924f44 100644
(file)
--- a/
qcsrc/server/bot/default/bot.qc
+++ b/
qcsrc/server/bot/default/bot.qc
@@
-129,6
+129,9
@@
void bot_think(entity this)
// if dead, just wait until we can respawn
if (IS_DEAD(this))
{
+ if (bot_waypoint_queue_owner == this)
+ bot_waypoint_queue_owner = NULL;
+ this.aistatus = 0;
CS(this).movement = '0 0 0';
if (this.deadflag == DEAD_DEAD)
{