Added checks for enforce usage only in SP with settings enabled

This commit is contained in:
Glowbal 2015-04-05 11:11:54 +02:00
parent 202904f1f9
commit 279641787d
2 changed files with 5 additions and 1 deletions

View File

@ -16,6 +16,8 @@
#include "script_component.hpp"
if (GVAR(serverConfigGeneration) == 0 || isMultiplayer) exitwith {closeDialog 145246;};
// Filter only user setable setting
GVAR(serverSideOptions) = [];
GVAR(serverSideColors) = [];

View File

@ -84,7 +84,9 @@ switch (_type) do {
if (_changed) then {
if (GVAR(serverConfigGeneration) > 0) then {
missionNamespace setvariable [_name, _newValue];
if !(isMultiplayer) then {
missionNamespace setvariable [_name, _newValue];
};
} else {
profileNamespace setVariable [_name, _newValue];
[_name, _newValue] call EFUNC(common,setSetting);