From 721b161161d391302094e2d795cda93be70c4225 Mon Sep 17 00:00:00 2001 From: Glowbal Date: Thu, 12 May 2016 19:56:07 +0200 Subject: [PATCH] Remove useless if statement --- addons/minedetector/functions/fnc_detectorLoop.sqf | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/addons/minedetector/functions/fnc_detectorLoop.sqf b/addons/minedetector/functions/fnc_detectorLoop.sqf index 666654bb07..440c899fd8 100644 --- a/addons/minedetector/functions/fnc_detectorLoop.sqf +++ b/addons/minedetector/functions/fnc_detectorLoop.sqf @@ -50,16 +50,6 @@ if (ACE_player == _unit && {currentWeapon _unit == _type}) then { case (_distance >= 0.5): {_sounds select 1}; default {_sounds select 0}; }; - - if ((_distance >= 1.2)) then { - if (_distance >= 2) then { - _sounds select 2; - } else { - _sounds select 1; - }; - } else { - _sounds select 0; - }; [_unit, _sound, true] call FUNC(playDetectorSound); }; };