From 1dbf9a8124449366a3a16220979afdc2c3a4531a Mon Sep 17 00:00:00 2001 From: JosiahJack Date: Thu, 21 Dec 2023 23:51:41 -0600 Subject: [PATCH] Fix difficulty resetting when going into options from pause --- Assets/Scripts/MainMenuHandler.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Assets/Scripts/MainMenuHandler.cs b/Assets/Scripts/MainMenuHandler.cs index ad8d4e519..6e1575374 100644 --- a/Assets/Scripts/MainMenuHandler.cs +++ b/Assets/Scripts/MainMenuHandler.cs @@ -498,22 +498,18 @@ void Update() { } UpdateConfigTabTextColor(); - Const.a.difficultyCombat = combat.difficultySetting; - Const.a.difficultyMission = mission.difficultySetting; - Const.a.difficultyPuzzle = puzzle.difficultySetting; - Const.a.difficultyCyber = cyber.difficultySetting; } public void StartGame (bool isNew) { Utils.PlayOneShotSavable(StartSFX,StartGameSFX); + Const.a.difficultyCombat = combat.difficultySetting; + Const.a.difficultyMission = mission.difficultySetting; + Const.a.difficultyPuzzle = puzzle.difficultySetting; + Const.a.difficultyCyber = cyber.difficultySetting; if (isNew) { string pname = newgamePage.GetComponentInChildren(true).text; if (string.IsNullOrWhiteSpace(pname)) pname = "Hacker"; Const.a.playerName = pname; - Const.a.difficultyCombat = combat.difficultySetting; - Const.a.difficultyMission = mission.difficultySetting; - Const.a.difficultyPuzzle = puzzle.difficultySetting; - Const.a.difficultyCyber = cyber.difficultySetting; Const.a.NewGame(); }