From 1b6bbfa6cf66950bc6c328e86b1f6bd9c987ac23 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 15 Oct 2015 08:23:21 +1000 Subject: [PATCH] Clean up the bounds a little bit --- qcsrc/common/weapons/calculations.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/calculations.qc b/qcsrc/common/weapons/calculations.qc index dcb7bbb0c..97c1999f8 100644 --- a/qcsrc/common/weapons/calculations.qc +++ b/qcsrc/common/weapons/calculations.qc @@ -149,7 +149,7 @@ int W_GetGunAlignment(entity player) #else int gunalign = autocvar_cl_gunalign; #endif - if(gunalign != 1 && gunalign != 2 && gunalign != 4) + if(gunalign < 1 || gunalign > 4) gunalign = 3; // default value --gunalign; -- 2.39.2