Skip to content

Commit

Permalink
Enable volatile settings only on dedicated server
Browse files Browse the repository at this point in the history
Co-authored-by: PabstMirror <[email protected]>
  • Loading branch information
veteran29 and PabstMirror authored Oct 16, 2023
1 parent 465d6a2 commit faabb51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/settings/fnc_initDisplayMain.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit faabb51

Please sign in to comment.