Starts game option settings fresh every time. We should probably add support for loading and saving options back in.

This commit is contained in:
Stian Grenborgen 2023-04-30 12:22:26 +02:00
parent 93fddc0a21
commit 955ba1ca5d
2 changed files with 1 additions and 3 deletions

View File

@ -51,8 +51,6 @@ public final class GameOptionsDialog extends OptionsDialog {
freeColClient.getGame().getGameOptions(), GameOptions.TAG,
FreeColDirectories.GAME_OPTIONS_FILE_NAME, GameOptions.TAG, editable);
if (isEditable()) loadDefaultOptions();
// Set special cases
// Disable victory option "All humans defeated"
// when playing single player

View File

@ -1225,6 +1225,7 @@ public final class Specification implements OptionContainer {
*/
public boolean updateGameAndMapOptions() {
boolean ret = false;
/*
String gtag = GameOptions.TAG;
File gof = FreeColDirectories
.getOptionsFile(FreeColDirectories.GAME_OPTIONS_FILE_NAME);
@ -1238,7 +1239,6 @@ public final class Specification implements OptionContainer {
}
gog.save(gof, null, true);
/*
String mtag = MapGeneratorOptions.TAG;
File mof = FreeColDirectories
.getOptionsFile(FreeColDirectories.MAP_GENERATOR_OPTIONS_FILE_NAME);