mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Bugfix: Phase toggle saving fixed.
This commit is contained in:
@@ -54,7 +54,6 @@ public class ControlDock {
|
||||
|
||||
/** Concede game, bring up WinLose UI. */
|
||||
public void concede() {
|
||||
AllZone.getDisplay().savePrefs();
|
||||
AllZone.getHumanPlayer().concede();
|
||||
AllZone.getGameAction().checkStateEffects();
|
||||
}
|
||||
|
||||
@@ -75,6 +75,7 @@ public class ControlWinLose {
|
||||
/** Action performed when "quit" button is pressed in default win/lose UI. */
|
||||
public void actionOnQuit() {
|
||||
AllZone.getMatchState().reset();
|
||||
AllZone.getDisplay().savePrefs();
|
||||
FControl g = ((GuiTopLevel) AllZone.getDisplay()).getController();
|
||||
g.getMatchController().deinitMatch();
|
||||
g.changeState(FControl.HOME_SCREEN);
|
||||
@@ -121,6 +122,7 @@ public class ControlWinLose {
|
||||
Constant.Runtime.HUMAN_DECK[0] = hDeck;
|
||||
}
|
||||
}
|
||||
AllZone.getDisplay().savePrefs();
|
||||
AllZone.getGameAction().newGame(Constant.Runtime.HUMAN_DECK[0], Constant.Runtime.COMPUTER_DECK[0]);
|
||||
}
|
||||
|
||||
|
||||
@@ -116,6 +116,8 @@ public class QuestWinLoseHandler extends ControlWinLose {
|
||||
*/
|
||||
@Override
|
||||
public final void startNextRound() {
|
||||
AllZone.getDisplay().savePrefs();
|
||||
|
||||
if (Constant.Quest.FANTASY_QUEST[0]) {
|
||||
int extraLife = 0;
|
||||
|
||||
@@ -299,6 +301,8 @@ public class QuestWinLoseHandler extends ControlWinLose {
|
||||
|
||||
this.model.qData.saveData();
|
||||
|
||||
AllZone.getDisplay().savePrefs();
|
||||
|
||||
FControl g = ((GuiTopLevel) AllZone.getDisplay()).getController();
|
||||
g.getMatchController().deinitMatch();
|
||||
g.changeState(FControl.HOME_SCREEN);
|
||||
|
||||
Reference in New Issue
Block a user