X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fdefault%2Fnavigation.qc;h=8fc33448b9401cb5c1f5faf6f246c0c6b3429d28;hb=2e30632598aee1914eddcabf35a7774be816b069;hp=6a1dc962b37746a34c3c31cccb49ba03b90971bf;hpb=7af3964cdfeba2458a5abbd39bfe336db737158d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index 6a1dc962b..8fc33448b 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -1738,7 +1738,7 @@ int navigation_poptouchedgoals(entity this) navigation_poproute(this); ++removed_goals; - if(this.goalcurrent && this.goalcurrent.wpflags & WAYPOINTFLAG_TELEPORT) + if(this.goalcurrent && (this.goalcurrent.wpflags & WAYPOINTFLAG_TELEPORT)) return removed_goals; } }