Skip to content

Commit

Permalink
Fix the add_completed_campaign() call for the tutorial
Browse files Browse the repository at this point in the history
When completing the tutorial, the preferences file's [completed_campaigns]
recorded that "" had been completed at difficulty NORMAL. This is an old
bug, unrelated to the other tutorial changes that I'm making, but would
cause problems if we want to change the UI based on whether the tutorial
has already been completed.
  • Loading branch information
stevecotton authored and Vultraz committed Nov 4, 2019
1 parent 7ca4ef9 commit 1f323ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game_launcher.cpp
Expand Up @@ -678,6 +678,7 @@ void game_launcher::set_tutorial()
state_.clear();
state_.classification().campaign_type = game_classification::CAMPAIGN_TYPE::TUTORIAL;
state_.classification().campaign_define = "TUTORIAL";
state_.classification().campaign = "Tutorial";
state_.mp_settings().mp_era = "era_default";
state_.set_carryover_sides_start(
config {"next_scenario", "tutorial"}
Expand Down

0 comments on commit 1f323ab

Please sign in to comment.