From 7e9bb4d4e80f6dd922e86f47718c93f67aed8518 Mon Sep 17 00:00:00 2001 From: wraitii Date: Mon, 7 Jun 2021 11:45:14 +0000 Subject: [PATCH] Only save MP match settings if the player is the controller Broken in 72f0fdb41b. Differential Revision: https://code.wildfiregames.com/D4112 This was SVN commit r25732. --- .../gui/gamesetup/Controllers/GameSettingsController.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/binaries/data/mods/public/gui/gamesetup/Controllers/GameSettingsController.js b/binaries/data/mods/public/gui/gamesetup/Controllers/GameSettingsController.js index 0f743a192a..e05d8d66d3 100644 --- a/binaries/data/mods/public/gui/gamesetup/Controllers/GameSettingsController.js +++ b/binaries/data/mods/public/gui/gamesetup/Controllers/GameSettingsController.js @@ -296,8 +296,9 @@ class GameSettingsController savePersistentMatchSettings() { - // TODO: ought to only save a subset of settings. - this.persistentMatchSettings.saveFile(this.getSettings()); + if (g_IsController) + // TODO: ought to only save a subset of settings. + this.persistentMatchSettings.saveFile(this.getSettings()); } }