mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
save options even if winlose overlay is disabled
This commit is contained in:
@@ -139,8 +139,10 @@ public class DuelScene extends ForgeScene {
|
|||||||
public void run(Integer result) {
|
public void run(Integer result) {
|
||||||
if (result == 0) {
|
if (result == 0) {
|
||||||
afterGameEnd(enemyName, finalWinner);
|
afterGameEnd(enemyName, finalWinner);
|
||||||
if (Config.instance().getSettingData().disableWinLose)
|
if (Config.instance().getSettingData().disableWinLose) {
|
||||||
|
MatchController.writeMatchPreferences();
|
||||||
exitDuelScene();
|
exitDuelScene();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fb.dispose();
|
fb.dispose();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -313,6 +313,7 @@ public class MatchController extends AbstractGuiGame {
|
|||||||
public void finishGame() {
|
public void finishGame() {
|
||||||
if (Forge.isMobileAdventureMode) {
|
if (Forge.isMobileAdventureMode) {
|
||||||
if (Config.instance().getSettingData().disableWinLose) {
|
if (Config.instance().getSettingData().disableWinLose) {
|
||||||
|
MatchController.writeMatchPreferences();
|
||||||
if (getGameView().isMatchOver()){
|
if (getGameView().isMatchOver()){
|
||||||
Forge.setCursor(null, "0");
|
Forge.setCursor(null, "0");
|
||||||
if (!DuelScene.instance().hasCallbackExit()){
|
if (!DuelScene.instance().hasCallbackExit()){
|
||||||
|
|||||||
Reference in New Issue
Block a user