Merge pull request #2839 from acemod/abFixTwist

AB - Fix ACE_twistDirection
This commit is contained in:
PabstMirror
2015-11-20 10:32:28 -06:00

View File

@ -20,9 +20,11 @@ _weaponConfig = (configFile >> "CfgWeapons" >> _this);
_barrelTwist = getNumber(_weaponConfig >> "ACE_barrelTwist"); _barrelTwist = getNumber(_weaponConfig >> "ACE_barrelTwist");
_twistDirection = 1; _twistDirection = 1;
_twistDirection = getNumber(_weaponConfig >> "ACE_twistDirection"); if (isNumber (_weaponConfig >> "ACE_twistDirection")) then {
if !(_twistDirection in [-1, 0, 1]) then { _twistDirection = getNumber (_weaponConfig >> "ACE_twistDirection");
_twistDirection = 1; if !(_twistDirection in [-1, 0, 1]) then {
_twistDirection = 1;
};
}; };
_barrelLength = getNumber(_weaponConfig >> "ACE_barrelLength"); _barrelLength = getNumber(_weaponConfig >> "ACE_barrelLength");