Skip to content

Commit

Permalink
Game Launcher: removed set_tutorial
Browse files Browse the repository at this point in the history
Since 4282d0b the tutorial no longer has a dedicated titlescreen button,
which was the only use of this.
  • Loading branch information
Vultraz committed Jan 2, 2021
1 parent 4b12410 commit f86168a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
11 changes: 0 additions & 11 deletions src/game_launcher.cpp
Expand Up @@ -738,17 +738,6 @@ bool game_launcher::load_game()
return true;
}

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_.classification().era_id = "era_default";

state_.set_carryover_sides_start(config{"next_scenario", "tutorial"});
}

void game_launcher::mark_completed_campaigns(std::vector<config>& campaigns)
{
for(config& campaign : campaigns) {
Expand Down
1 change: 0 additions & 1 deletion src/game_launcher.hpp
Expand Up @@ -89,7 +89,6 @@ class game_launcher
bool is_loading() const;
void clear_loaded_game();
bool load_game();
void set_tutorial();
void set_test(const std::string& id);

/** Return the ID of the campaign to jump to (skipping the main menu). */
Expand Down
8 changes: 0 additions & 8 deletions src/gui/dialogs/title_screen.cpp
Expand Up @@ -315,14 +315,6 @@ void title_screen::pre_show(window& win)
//
register_button(win, "about", hotkey::HOTKEY_NULL, std::bind(&game_version::display<>));

//
// Tutorial
//
register_button(win, "tutorial", hotkey::TITLE_SCREEN__TUTORIAL, [this, &win]() {
game_.set_tutorial();
win.set_retval(LAUNCH_GAME);
});

//
// Campaign
//
Expand Down

0 comments on commit f86168a

Please sign in to comment.