From: terencehill Date: Thu, 28 Sep 2017 00:02:46 +0000 (+0200) Subject: Remove a redundant check X-Git-Tag: xonotic-v0.8.5~2378^2~49 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5a846c02ef2f4711e80ba113641b41c78bb5bb2b;p=xonotic%2Fxonotic-data.pk3dir.git Remove a redundant check --- diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index 11f78edf6..5de03e8af 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -1366,8 +1366,7 @@ int navigation_poptouchedgoals(entity this) // If for some reason the bot is closer to the next goal, pop the current one if(this.goalstack01 && !wasfreed(this.goalstack01)) - if(vlen2(this.goalcurrent.origin - this.origin) > vlen2(this.goalstack01.origin - this.origin) - || vlen2(this.goalcurrent.origin - this.goalstack01.origin) > vlen2(this.goalstack01.origin - this.origin)) + if(vlen2(this.goalcurrent.origin - this.goalstack01.origin) > vlen2(this.goalstack01.origin - this.origin)) if(checkpvs(this.origin + this.view_ofs, this.goalstack01)) { vector dest = '0 0 0';