From 00842da15a26f723c503195ad368103c56f9dea2 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 3 Oct 2016 23:00:27 +1000 Subject: [PATCH] Fix shot alignment --- qcsrc/common/weapons/calculations.qc | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.2