Skip to content

Commit

Permalink
Add author support for mission defined unitInsignias
Browse files Browse the repository at this point in the history
  • Loading branch information
alganthe committed Aug 31, 2018
1 parent 04aeaa0 commit d13641d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion addons/arsenal/functions/fnc_onSelChangedLeft.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,14 @@ switch (GVAR(currentLeftPanel)) do {

call FUNC(showItem);
TOGGLE_RIGHT_PANEL_HIDE
[_display, _control, _curSel, (configFile >> "CfgUnitInsignia" >> _item)] call FUNC(itemInfo);

private _unitInsigniaConfig = (configFile >> "CfgUnitInsignia" >> _item);

if (configName _unitInsigniaConfig isEqualTo "") then {
[_display, _control, _curSel, (missionConfigFile >> "CfgUnitInsignia" >> _item)] call FUNC(itemInfo);
} else {
[_display, _control, _curSel, _unitInsigniaConfig] call FUNC(itemInfo);
};
};
};

Expand Down

0 comments on commit d13641d

Please sign in to comment.