Initialize defaultLoadoutsList by default

This commit is contained in:
Ozan Eğitmen 2018-09-02 15:31:08 +03:00
parent c3502d6dcc
commit a53d21046e
3 changed files with 4 additions and 7 deletions

View File

@ -8,6 +8,7 @@ PREP_RECOMPILE_START;
PREP_RECOMPILE_END;
// Arsenal
GVAR(defaultLoadoutsList) = [];
GVAR(modList) = ["","curator","kart","heli","mark","expansion","expansionpremium"];
[QGVAR(camInverted), "CHECKBOX", localize LSTRING(invertCameraSetting), localize LSTRING(settingCategory), false] call CBA_Settings_fnc_init;

View File

@ -16,7 +16,7 @@ params ["_display"];
if (GVAR(shiftState)) then {
if (isNil QGVAR(defaultLoadoutsList) || {GVAR(defaultLoadoutsList) isEqualTo []}) exitWith {
if (GVAR(defaultLoadoutsList) isEqualTo []) exitWith {
[_display, localize LSTRING(exportDefaultError)] call FUNC(message);
};

View File

@ -34,12 +34,8 @@ if (isNil {GVAR(sharedLoadoutsNamespace) getVariable QGVAR(sharedLoadoutsVars)})
GVAR(sharedLoadoutsNamespace) setVariable [QGVAR(sharedLoadoutsVars), [], true];
};
if (isNil QGVAR(defaultLoadoutsList)) then {
if (is3DEN) then {
GVAR(defaultLoadoutsList) = (QGVAR(DummyCategory) get3DENMissionAttribute QGVAR(DefaultLoadoutsListAttribute));
} else {
GVAR(defaultLoadoutsList) = [];
};
if (is3DEN) then {
GVAR(defaultLoadoutsList) append (QGVAR(DummyCategory) get3DENMissionAttribute QGVAR(DefaultLoadoutsListAttribute));
};
if (isNil QGVAR(virtualItems)) then {