mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix allowSwapBarrel condition (#6170)
This commit is contained in:
parent
3feafc449f
commit
21ae61e551
@ -18,7 +18,7 @@
|
||||
params ["_unit","_weapon"];
|
||||
|
||||
//Check if weapon can have its barrel swapped. If not exit out of function
|
||||
if( !GVAR(enabled) && (getNumber (configFile >> 'CfgWeapons' >> _weapon >> QGVAR(allowSwapBarrel))) != 1) exitWith{false};
|
||||
if( !GVAR(enabled) || {getNumber (configFile >> 'CfgWeapons' >> _weapon >> QGVAR(allowSwapBarrel)) != 1}) exitWith{false};
|
||||
|
||||
//Get the classname of the spare barrel for the weapon
|
||||
private _weaponBarrelClass = getText (configFile >> 'CfgWeapons' >> _weapon >> QGVAR(barrelClassname));
|
||||
|
Loading…
Reference in New Issue
Block a user