Skip to content

Commit

Permalink
Cook Off - Adjust players only settings check (acemod#7419)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dahlgren authored Feb 8, 2020
1 parent 65e1601 commit f460eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/cookoff/functions/fnc_handleDamage.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (damage _vehicle >= 1) exitWith {};
if (_vehicle getVariable [QGVAR(enable), GVAR(enable)] in [0, false]) exitWith {};

// Check for players and exit if none found and the enable for players only setting is true
if (_vehicle getVariable [QGVAR(enable), GVAR(enable)] isEqualTo 2 && {fullCrew [_vehicle, "", false] findIf {isPlayer (_x select 0)} == -1}) exitWith {};
if (_vehicle getVariable [QGVAR(enable), GVAR(enable)] isEqualTo 1 && {fullCrew [_vehicle, "", false] findIf {isPlayer (_x select 0)} == -1}) exitWith {};

// get hitpoint name
private _hitpoint = "#structural";
Expand Down

0 comments on commit f460eca

Please sign in to comment.