mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
dc9a3eb064
commit
1315cb77e6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user