Skip to content

Commit

Permalink
Rename _cfg to something a bit more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
marceldev89 committed Jul 14, 2016
1 parent 5c631da commit ded2c78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/sup_combatsupport/fnc_unpackMortar.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ private _backpacks = [];
private _backpack = unitBackpack _x;

if (!isNull _backpack) then {
private _cfg = (configFile >> "CfgVehicles" >> typeOf _backpack >> "assembleInfo" >> "assembleTo");
private _assembleToValue = _cfg call BIS_fnc_getCfgData;
private _assembleToCfg = (configFile >> "CfgVehicles" >> typeOf _backpack >> "assembleInfo" >> "assembleTo");
private _assembleToValue = _assembleToCfg call BIS_fnc_getCfgData;

if (!isNil "_assembleToValue" && {count _assembleToValue > 0}) then {
private _cfg = (configFile >> "CfgVehicles" >> _assembleToValue >> "assembleInfo" >> "dissasembleTo");
private _disassembleToValue = _cfg call BIS_fnc_getCfgData;
private _disassembleToCfg = (configFile >> "CfgVehicles" >> _assembleToValue >> "assembleInfo" >> "dissasembleTo");
private _disassembleToValue = _disassembleToCfg call BIS_fnc_getCfgData;

if (!isNil "_disassembleToValue" && {count _disassembleToValue > 0}) then {
_disassembleTo = _disassembleToValue;
Expand Down

0 comments on commit ded2c78

Please sign in to comment.