From: terencehill Date: Sat, 17 Dec 2016 20:44:10 +0000 (+0100) Subject: Fix ambiguous check causing bots to avoid jumppads and teleporters (and to always... X-Git-Tag: xonotic-v0.8.2~343^2~19 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=001be2ba104550aecd1b751531de0d2a462633a1;hp=c276d688b45028e2b57f4505bd4f58342f11309a Fix ambiguous check causing bots to avoid jumppads and teleporters (and to always fall off the map near the jumppad on Xoylent!) --- diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index 19c0ed8e60..70391d56b0 100644 --- 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)