Skip to content

Commit c6407ab

Browse files
committed
Fix bugs
1 parent 0c6b9e7 commit c6407ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

addons/explosives/functions/fnc_addClacker.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ private _detonators = _unit call FUNC(getDetonators);
3333

3434
if ((getArray (_triggerConfig >> "requires")) findIf {!((_x call EFUNC(common,getConfigName)) in _detonators)} != -1) exitWith {};
3535

36+
GVAR(placedCount) = GVAR(placedCount) + 1;
37+
3638
private _triggerConfigName = configName _triggerConfig;
3739
private _clackerList = _unit getVariable [QGVAR(clackers), []];
3840

@@ -49,8 +51,6 @@ _clackerList pushBack [
4951

5052
_unit setVariable [QGVAR(clackers), _clackerList, true];
5153

52-
GVAR(placedCount) = GVAR(placedCount) + 1;
53-
5454
// Display clacker code message
5555
[format [LLSTRING(DetonateCode), GVAR(placedCount)]] call EFUNC(common,displayTextStructured);
5656

addons/explosives/functions/fnc_canDefuse.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ if (_target isKindOf "ACE_DefuseObject") then {
3434
deleteVehicle _target;
3535

3636
false breakOut "main" // return
37-
} else {
38-
_target = _explosive;
3937
};
38+
39+
_target = _explosive;
4040
};
4141

4242
(!GVAR(requireSpecialist) || {_unit call EFUNC(common,isEOD)}) &&

0 commit comments

Comments
 (0)