Remove trace from loadoutsLoad, add trace to shared and unshared EHs

This commit is contained in:
Josuan Albin
2017-11-05 07:21:27 +01:00
parent d87ddb9845
commit f7778beb81
2 changed files with 4 additions and 3 deletions

View File

@ -23,6 +23,8 @@ GVAR(lastSearchTextRight) = "";
[QGVAR(loadoutUnshared), {
_x params ["_contentPanel" ,"_loadoutName"];
TRACE_3("loadoutUnshared EH", _contentPanel, _loadoutName, IDC_buttonSharedLoadouts);
if (!(isNil QGVAR(currentLoadoutsTab)) && {GVAR(currentLoadoutsTab) == IDC_buttonSharedLoadouts}) then {
for '_i' from 0 to (((lnbsize _contentPanel) select 0) - 1) do {
@ -35,6 +37,8 @@ GVAR(lastSearchTextRight) = "";
_x params ["_contentPanel" ,"_loadoutArgs"];
_loadoutArgs params ["_playerName", "_loadoutName", "_loadoutData"];
TRACE_3("loadoutShared EH", _contentPanel, _loadoutsArgs, IDC_buttonSharedLoadouts);
if (!(isNil QGVAR(currentLoadoutsTab)) && {GVAR(currentLoadoutsTab) == IDC_buttonSharedLoadouts}) then {
private _curSelText =_contentPanel lnbData [(lnbCurSelRow _contentPanel), 1];

View File

@ -21,9 +21,6 @@ private _loadout = switch GVAR(currentLoadoutsTab) do {
};
};
TRACE_1("loadout load", _loadout);
GVAR(center) setUnitLoadout [_loadout, true];
GVAR(currentItems) = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", [], [], [], [], [], []];