From faabb518ff486c6a2dc49b99c170969e8615a09e Mon Sep 17 00:00:00 2001 From: Filip Maciejewski Date: Mon, 16 Oct 2023 03:57:53 +0200 Subject: [PATCH] Enable volatile settings only on dedicated server Co-authored-by: PabstMirror --- addons/settings/fnc_initDisplayMain.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/settings/fnc_initDisplayMain.sqf b/addons/settings/fnc_initDisplayMain.sqf index 402a5c893..125d2dde4 100644 --- a/addons/settings/fnc_initDisplayMain.sqf +++ b/addons/settings/fnc_initDisplayMain.sqf @@ -28,7 +28,7 @@ if (_file != "") then { uiNamespace setVariable [QGVAR(userconfig), compileFinal str _userconfig]; -private _volatile = getNumber (configFile >> QGVAR(volatile)) == 1; +private _volatile = (getNumber (configFile >> QGVAR(volatile)) == 1) && {!hasInterface}; uiNamespace setVariable [QGVAR(volatile), _volatile]; if (_volatile) then { WARNING("Server settings changes will be lost upon game restart.");