projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c276d68
)
Fix ambiguous check causing bots to avoid jumppads and teleporters (and to always...
author
terencehill <piuntn@gmail.com>
Sat, 17 Dec 2016 20:44:10 +0000
(21:44 +0100)
committer
terencehill <piuntn@gmail.com>
Mon, 19 Dec 2016 17:28:26 +0000
(18:28 +0100)
qcsrc/server/bot/default/navigation.qc
patch
|
blob
|
history
diff --git
a/qcsrc/server/bot/default/navigation.qc
b/qcsrc/server/bot/default/navigation.qc
index 19c0ed8e600337c22590dfda6342fb7fd91e226f..70391d56b02ada9673e1024e8d3198a8ce2825e9 100644
(file)
--- a/
qcsrc/server/bot/default/navigation.qc
+++ b/
qcsrc/server/bot/default/navigation.qc
@@
-879,7
+879,7
@@
void navigation_poptouchedgoals(entity this)
if(this.goalcurrent.wpflags & WAYPOINTFLAG_TELEPORT)
{
if(this.lastteleporttime>0)
- if(time
-this.lastteleporttime<(this.goalcurrent.wpflags & WAYPOINTFLAG_PERSONAL)?2:0.15
)
+ if(time
- this.lastteleporttime < ((this.goalcurrent.wpflags & WAYPOINTFLAG_PERSONAL) ? 2 : 0.15)
)
{
if(this.aistatus & AI_STATUS_WAYPOINT_PERSONAL_GOING)
if(this.goalcurrent.wpflags & WAYPOINTFLAG_PERSONAL && this.goalcurrent.owner==this)