From: Mario Date: Wed, 14 Oct 2015 22:23:21 +0000 (+1000) Subject: Clean up the bounds a little bit X-Git-Tag: xonotic-v0.8.2~1820 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1b6bbfa6cf66950bc6c328e86b1f6bd9c987ac23;p=xonotic%2Fxonotic-data.pk3dir.git Clean up the bounds a little bit --- 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;