mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Yardage - Fix broken display in 2.16 (#9892)
This commit is contained in:
parent
0d45a85db6
commit
0365565efc
@ -33,12 +33,15 @@ GVAR(active) = true;
|
|||||||
[{
|
[{
|
||||||
if (CBA_missionTime - GVAR(powerOnTime) > 30) exitWith {
|
if (CBA_missionTime - GVAR(powerOnTime) > 30) exitWith {
|
||||||
GVAR(active) = false;
|
GVAR(active) = false;
|
||||||
74210 cutText ["", "PLAIN"];
|
QUOTE(ADDON) cutText ["", "PLAIN"];
|
||||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (currentWeapon ACE_player == "ACE_Yardage450" && cameraView == "GUNNER") then {
|
if (currentWeapon ACE_player == "ACE_Yardage450" && cameraView == "GUNNER") then {
|
||||||
74210 cutRsc ["ACE_RscYardage450", "PLAIN", 1, false];
|
if (isNil {__dsp} || {isNull __dsp} || {ctrlIDD __dsp != -1}) then {
|
||||||
|
TRACE_1("making display",__dsp);
|
||||||
|
QUOTE(ADDON) cutRsc ["ACE_RscYardage450", "PLAIN", 1, false];
|
||||||
|
};
|
||||||
|
|
||||||
__ctrlLaser ctrlShow GVAR(lasing);
|
__ctrlLaser ctrlShow GVAR(lasing);
|
||||||
if (GVAR(targetAcquired)) then {
|
if (GVAR(targetAcquired)) then {
|
||||||
@ -51,7 +54,7 @@ GVAR(active) = true;
|
|||||||
__ctrlMeters ctrlShow !GVAR(useYards);
|
__ctrlMeters ctrlShow !GVAR(useYards);
|
||||||
__ctrlYards ctrlShow GVAR(useYards);
|
__ctrlYards ctrlShow GVAR(useYards);
|
||||||
} else {
|
} else {
|
||||||
74210 cutText ["", "PLAIN"];
|
QUOTE(ADDON) cutText ["", "PLAIN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
}, 0, []] call CBA_fnc_addPerFrameHandler;
|
}, 0, []] call CBA_fnc_addPerFrameHandler;
|
||||||
|
Loading…
Reference in New Issue
Block a user