mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
changed variable name to use QGVAR macro
This commit is contained in:
parent
b9c1936efc
commit
f301491c7a
@ -26,7 +26,7 @@ _isIR = _isIR == 1;
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (_laser != "") then {
|
if (_laser != "") then {
|
||||||
_cacheName = format ["ACE_laserpointer_%1", _laser];
|
_cacheName = format [QGVAR(laser_%1), _laser];
|
||||||
_laserID = missionNamespace getVariable [_cacheName, -1];
|
_laserID = missionNamespace getVariable [_cacheName, -1];
|
||||||
if (missionNamespace getVariable [_cacheName, -1] == -1) then {
|
if (missionNamespace getVariable [_cacheName, -1] == -1) then {
|
||||||
_laserID = getNumber (configFile >> "CfgWeapons" >> _laser >> "ACE_laserpointer");
|
_laserID = getNumber (configFile >> "CfgWeapons" >> _laser >> "ACE_laserpointer");
|
||||||
|
Loading…
Reference in New Issue
Block a user