Update fnc_showAltimeter.sqf (#9108)

Bug fix
CBA_fnc_removePerFrameEventHandler was used to remove the calculations for the altimeter, but does not exist. Replaced with CBA_fnc_removePerFrameHandler to rectify this issue.
This commit is contained in:
KJW 2022-12-08 21:37:33 +00:00 committed by GitHub
parent dc9a3eb064
commit 1315cb77e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,12 +32,12 @@ private _TimeText = _display displayCtrl 1001;
_args params ["_unit", "_oldHeight", "_prevTime", "_HeightText", "_DecendRate", "_TimeText"];
if !(GVAR(AltimeterActive)) exitWith {
_pfhID call CBA_fnc_removePerFrameEventHandler;
_pfhID call CBA_fnc_removePerFrameHandler;
};
if !("ACE_Altimeter" in assignedItems _unit) exitWith {
call FUNC(hideAltimeter);
_pfhID call CBA_fnc_removePerFrameEventHandler;
_pfhID call CBA_fnc_removePerFrameHandler;
};
private _hour = floor daytime;