From: Holger Schemel Date: Sat, 9 Jan 2021 16:17:59 +0000 (+0100) Subject: inverted logic of boolean setup option (to show scores after the game) X-Git-Tag: 4.2.3.0~48 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1f6a3409735a6bacc8900cc48328dea4b0c08d9d;p=rocksndiamonds.git inverted logic of boolean setup option (to show scores after the game) --- diff --git a/src/files.c b/src/files.c index e9634c5e..0218bbf4 100644 --- a/src/files.c +++ b/src/files.c @@ -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; diff --git a/src/game.c b/src/game.c index d8a3d162..7f5405cc 100644 --- a/src/game.c +++ b/src/game.c @@ -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); diff --git a/src/libgame/system.h b/src/libgame/system.h index 0ec8a491..0a6c35e1 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -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; diff --git a/src/screens.c b/src/screens.c index 39650b5c..84b890f6 100644 --- a/src/screens.c +++ b/src/screens.c @@ -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:" },