From: Mario Date: Mon, 3 Oct 2016 13:00:27 +0000 (+1000) Subject: Fix shot alignment X-Git-Tag: xonotic-v0.8.2~326^2~69^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=00842da15a26f723c503195ad368103c56f9dea2;p=xonotic%2Fxonotic-data.pk3dir.git Fix shot alignment --- diff --git a/qcsrc/common/weapons/calculations.qc b/qcsrc/common/weapons/calculations.qc index 258b83f08..367bab6af 100644 --- a/qcsrc/common/weapons/calculations.qc +++ b/qcsrc/common/weapons/calculations.qc @@ -152,6 +152,9 @@ vector findperpendicular(vector v) entity own = this.owner; + if(preferred_align < 1 || preferred_align > 4) + preferred_align = 3; // default + for(int j = 4; j > 1; --j) // > 1 as 1 is just center again { int taken = 0;