Fix ambiguous check causing bots to avoid jumppads and teleporters (and to always...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / navigation.qc
index 19c0ed8e600337c22590dfda6342fb7fd91e226f..70391d56b02ada9673e1024e8d3198a8ce2825e9 100644 (file)
@@ -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)