From f5a4df75392ef763eede5dcb99d09c00b3d409c7 Mon Sep 17 00:00:00 2001 From: commy2 Date: Mon, 27 Nov 2017 12:36:48 +0100 Subject: [PATCH] add support for hasSettingsFile flag to description.ext --- addons/settings/fnc_initDisplay3DEN.sqf | 2 +- addons/settings/initSettings.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/settings/fnc_initDisplay3DEN.sqf b/addons/settings/fnc_initDisplay3DEN.sqf index cda58a3dc..9213e8a41 100644 --- a/addons/settings/fnc_initDisplay3DEN.sqf +++ b/addons/settings/fnc_initDisplay3DEN.sqf @@ -10,7 +10,7 @@ private _fnc_resetMissionSettings = { private _missionConfig = ""; - if (getMissionConfigValue [QGVAR(hasSettingsFile), false]) then { + if (getMissionConfigValue [QGVAR(hasSettingsFile), false] in [true, 1]) then { INFO("Loading mission settings file ..."); _missionConfig = preprocessFile MISSION_SETTINGS_FILE; }; diff --git a/addons/settings/initSettings.sqf b/addons/settings/initSettings.sqf index 24f3aaefd..c40d874ff 100644 --- a/addons/settings/initSettings.sqf +++ b/addons/settings/initSettings.sqf @@ -44,7 +44,7 @@ if (isNil QGVAR(default)) then { private _missionConfig = ""; - if (getMissionConfigValue [QGVAR(hasSettingsFile), false]) then { + if (getMissionConfigValue [QGVAR(hasSettingsFile), false] in [true, 1]) then { INFO("Loading mission settings file ..."); _missionConfig = preprocessFile MISSION_SETTINGS_FILE; };