Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Fortify - Require tool to remove objects #117

Merged
merged 1 commit into from
Apr 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/fortify/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ GVAR(objectRotationZ) = 0;
deleteVehicle _target;
_params call FUNC(updateBudget);
},
{missionNamespace getVariable [QGVAR(fortifyAllowed), true]},
{(missionNamespace getVariable [QGVAR(fortifyAllowed), true]) && {"ACE_Fortify" in (items _player)}},
{},
[_side, _cost],
{[0, 0, 0]},
Expand Down
2 changes: 1 addition & 1 deletion addons/fortify/functions/fnc_canFortify.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
params ["_player", ["_cost", 0]];

(missionNamespace getVariable [QGVAR(fortifyAllowed), true]) &&
{("ACE_Fortify" in (items _player))} &&
{"ACE_Fortify" in (items _player)} &&
{
private _budget = [side group _player] call FUNC(getBudget);
((_budget == -1) || {_budget > _cost})
Expand Down