Skip to content

Commit

Permalink
Merge pull request #2839 from acemod/abFixTwist
Browse files Browse the repository at this point in the history
AB - Fix ACE_twistDirection
  • Loading branch information
PabstMirror committed Nov 20, 2015
2 parents 0110ada + 9d2d5b9 commit 9a9029f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ _weaponConfig = (configFile >> "CfgWeapons" >> _this);

_barrelTwist = getNumber(_weaponConfig >> "ACE_barrelTwist");
_twistDirection = 1;
_twistDirection = getNumber(_weaponConfig >> "ACE_twistDirection");
if !(_twistDirection in [-1, 0, 1]) then {
_twistDirection = 1;
if (isNumber (_weaponConfig >> "ACE_twistDirection")) then {
_twistDirection = getNumber (_weaponConfig >> "ACE_twistDirection");
if !(_twistDirection in [-1, 0, 1]) then {
_twistDirection = 1;
};
};

_barrelLength = getNumber(_weaponConfig >> "ACE_barrelLength");
Expand Down

0 comments on commit 9a9029f

Please sign in to comment.