From d5f8d965f363c607a80ab22a050b689f244e36a0 Mon Sep 17 00:00:00 2001 From: VKing Date: Sun, 12 Jun 2016 17:22:44 +0200 Subject: [PATCH] Change ace_time to cba_missionTime --- addons/minedetector/XEH_clientInit.sqf | 2 +- addons/minedetector/functions/fnc_detectorLoop.sqf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/minedetector/XEH_clientInit.sqf b/addons/minedetector/XEH_clientInit.sqf index 4077a93812..937d30254b 100644 --- a/addons/minedetector/XEH_clientInit.sqf +++ b/addons/minedetector/XEH_clientInit.sqf @@ -8,7 +8,7 @@ private _helperObject = "ACE_LogicDummy" createVehicleLocal (getPos _unit); _unit setvariable [QGVAR(helperLogic), _helperObject]; - [FUNC(detectorLoop), 0.01, [_unit, _type, _config, ACE_time, _helperObject]] call CBA_fnc_addPerFrameHandler; + [FUNC(detectorLoop), 0.01, [_unit, _type, _config, CBA_missionTime, _helperObject]] call CBA_fnc_addPerFrameHandler; }] call CBA_fnc_addEventHandler; [QGVAR(detectorDisabled), { diff --git a/addons/minedetector/functions/fnc_detectorLoop.sqf b/addons/minedetector/functions/fnc_detectorLoop.sqf index 440c899fd8..c0ba5e4822 100644 --- a/addons/minedetector/functions/fnc_detectorLoop.sqf +++ b/addons/minedetector/functions/fnc_detectorLoop.sqf @@ -41,8 +41,8 @@ if (ACE_player == _unit && {currentWeapon _unit == _type}) then { case (_distance >= 0.75): {0.7}; default {0.5}; }; - if (_hasDetected && {(ACE_time - _lastPlayed > _distanceTiming)}) then { - _args set [3, ACE_time]; + if (_hasDetected && {(CBA_missionTime - _lastPlayed > _distanceTiming)}) then { + _args set [3, CBA_missionTime]; _detectorConfig params ["_type", "_radius", "_detectableTypes", "_sounds"]; private _sound = switch (true) do { case (_distance >= 2): {_sounds select 3};