Skip to content

Commit

Permalink
fix no-spare-track (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Walthzer authored Aug 7, 2022
1 parent c2ba667 commit c27ae14
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions addons/misc/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ if (isServer) then {

private _fnc_addSpareCargo = {
params ["_vehicle"];
if (ace_repair_addSpareParts && {_vehicle isKindOf "Tank"}) then {
[_vehicle, 1, "ACE_Track"] call ace_repair_fnc_addSpareParts;
};

//Add fuel cans based on vehicle side
private _config = configOf _vehicle;
Expand All @@ -26,7 +23,7 @@ if (isServer) then {
};
};

["Tank", "initPost", _fnc_addSpareCargo] call CBA_fnc_addClassEventHandler;
//["Tank", "initPost", _fnc_addSpareCargo] call CBA_fnc_addClassEventHandler; Fuel Cans take up spare track space
["Car", "initPost", _fnc_addSpareCargo] call CBA_fnc_addClassEventHandler;
};

Expand Down

0 comments on commit c27ae14

Please sign in to comment.