X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fdefault%2Fnavigation.qc;h=83077e1d400707a97c757599082b426bc656937c;hp=0e4243de6a5bfc51737d09614705e0661123c2c8;hb=026f2155d763d70ec5addf1371c3314af2cfe36b;hpb=ff28f51fe8b708fbce4554fa240eb100b377229a diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index 0e4243de6..83077e1d4 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -876,6 +876,9 @@ void navigation_poptouchedgoals(entity this) m1 = org + this.mins; m2 = org + this.maxs; + while(this.goalcurrent && wasfreed(this.goalcurrent)) + navigation_poproute(this); + if(this.goalcurrent.wpflags & WAYPOINTFLAG_TELEPORT) { // make sure jumppad is really hit, don't rely on distance based checks