mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix GVAR(Optics) locality issue
This commit is contained in:
parent
c25fbf940f
commit
17bea4bee8
@ -27,7 +27,11 @@ if (GVAR(simplifiedZeroing)) exitWith {
|
|||||||
((_adjustment select _weaponIndex) select 0)
|
((_adjustment select _weaponIndex) select 0)
|
||||||
};
|
};
|
||||||
|
|
||||||
private _optic = GVAR(Optics) select _weaponIndex;
|
private _optic = if (_unit == ACE_Player) then {
|
||||||
|
GVAR(Optics) select _weaponIndex;
|
||||||
|
} else {
|
||||||
|
([_unit] call FUNC(getOptics)) select _weaponIndex;
|
||||||
|
};
|
||||||
private _opticConfig = if (_optic != "") then {
|
private _opticConfig = if (_optic != "") then {
|
||||||
(configFile >> "CfgWeapons" >> _optic)
|
(configFile >> "CfgWeapons" >> _optic)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user