Skip to content

Commit

Permalink
Make validateLoadout event switchable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kexanone committed Jan 23, 2021
1 parent 145733b commit 37449af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/network/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ADDON = false;
[QGVAR(validateLoadout), {
params ["_unit", "_loadout"];

if !(getUnitLoadout _unit isEqualTo _loadout) then {
if ((GVAR(enableLoadoutValidation) && !(getUnitLoadout _unit isEqualTo _loadout)) then {
_unit setUnitLoadout _loadout;
};
}] call CBA_fnc_addEventHandler;
Expand Down

0 comments on commit 37449af

Please sign in to comment.