From 51c7a0f9b84d9d2c5d2d9f077d4c0d994d862774 Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Thu, 9 May 2024 10:29:00 +0200 Subject: [PATCH] Update fnc_handleDamageBox.sqf --- addons/cookoff/functions/fnc_handleDamageBox.sqf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/cookoff/functions/fnc_handleDamageBox.sqf b/addons/cookoff/functions/fnc_handleDamageBox.sqf index 3f0d0ca2f1..43e92f62d4 100644 --- a/addons/cookoff/functions/fnc_handleDamageBox.sqf +++ b/addons/cookoff/functions/fnc_handleDamageBox.sqf @@ -45,10 +45,8 @@ if ((getNumber (_ammoConfig >> "explosive") >= 0.5) || {getNumber (_ammoConfig > _source currentMagazineTurret (_source unitTurret _instigator) }; - private _configMagazine = configFile >> "CfgMagazines" >> _magazine; - // Magazine could have changed during flight time (just ignore if so) - if (_ammo getShotInfo 4 && {getText (_configMagazine >> "ammo") == _ammo}) then { // 4 = shownTracer + if (_ammo getShotInfo 4 && {getText (configFile >> "CfgMagazines" >> _magazine >> "ammo") == _ammo}) then { // 4 = shownTracer [QGVAR(cookOffBox), [_box, _source, _instigator]] call CBA_fnc_serverEvent; }; };