Skip to content

Commit

Permalink
AdvanBalls - Fix ACE_twistDirection
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Nov 11, 2015
1 parent 99852f2 commit 9d2d5b9
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 9d2d5b9

Please sign in to comment.