inverted logic of boolean setup option (to show scores after the game)
authorHolger Schemel <info@artsoft.org>
Sat, 9 Jan 2021 16:17:59 +0000 (17:17 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 20 Jan 2021 18:19:52 +0000 (19:19 +0100)
src/files.c
src/game.c
src/libgame/system.h
src/screens.c

index e9634c5e03b3c833818ac8eaf60929852c5ca843..0218bbf4c62641f7692b0a6971300b1bd9604bab 100644 (file)
@@ -8545,7 +8545,7 @@ static struct TokenInfo global_setup_tokens[] =
   },
   {
     TYPE_SWITCH,
-    &setup.skip_scores_after_game,             "skip_scores_after_game"
+    &setup.show_scores_after_game,             "show_scores_after_game"
   },
   {
     TYPE_SWITCH,
@@ -9264,7 +9264,7 @@ static void setSetupInfoToDefaults(struct SetupInfo *si)
   si->skip_levels = TRUE;
   si->increment_levels = TRUE;
   si->auto_play_next_level = TRUE;
-  si->skip_scores_after_game = FALSE;
+  si->show_scores_after_game = TRUE;
   si->time_limit = TRUE;
   si->fullscreen = FALSE;
   si->window_scaling_percent = STD_WINDOW_SCALING_PERCENT;
index d8a3d16270af01b54ed8dcff09072d13f79aff4a..7f5405cc014840076b71e8e54cd0f8f2e4375236 100644 (file)
@@ -5002,7 +5002,7 @@ void GameEnd(void)
 
   hi_pos = NewHiScore(last_level_nr);
 
-  if (hi_pos >= 0 && !setup.skip_scores_after_game)
+  if (hi_pos >= 0 && setup.show_scores_after_game)
   {
     SetGameStatus(GAME_MODE_SCORES);
 
index 0ec8a491bb113cb185891f8caf038d49e9d548ea..0a6c35e16755dfc94706fcec31b618d49d67e842 100644 (file)
@@ -1427,7 +1427,7 @@ struct SetupInfo
   boolean skip_levels;
   boolean increment_levels;
   boolean auto_play_next_level;
-  boolean skip_scores_after_game;
+  boolean show_scores_after_game;
   boolean time_limit;
   boolean fullscreen;
   int window_scaling_percent;
index 39650b5cf6a4f9aa32acd0fb999518ccbd6815c1..84b890f6e9bb6c0d05e2d519a36ba4ed89e91f15 100644 (file)
@@ -6671,7 +6671,7 @@ static struct TokenInfo setup_info_game[] =
   { TYPE_SWITCH,       &setup.skip_levels,     "Skip Unsolved Levels:" },
   { TYPE_SWITCH,       &setup.increment_levels,"Increment Solved Levels:" },
   { TYPE_SWITCH,       &setup.auto_play_next_level,"Auto-play Next Level:" },
-  { TYPE_SWITCH,       &setup.skip_scores_after_game,"Skip Scores After Game:" },
+  { TYPE_SWITCH,       &setup.show_scores_after_game,"Show Scores After Game:" },
   { TYPE_YES_NO,       &setup.ask_on_game_over, "Ask on Game Over:"    },
   { TYPE_SWITCH,       &setup.autorecord,      "Auto-Record Tapes:"    },
   { TYPE_ENTER_LIST,   execSetupChooseGameSpeed, "Game Speed:"         },