Skip to content

Commit

Permalink
MP Options Helper: remove options from both type of games when updati…
Browse files Browse the repository at this point in the history
…ng (bug #25526)
  • Loading branch information
Vultraz committed Feb 20, 2017
1 parent de8e322 commit b7d262b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/dialogs/multiplayer/mp_options_helper.cpp
Expand Up @@ -64,7 +64,10 @@ void mp_options_helper::update_game_options()
{
const std::string type = create_engine_.current_level_type() == ng::level::TYPE::CAMPAIGN ? "campaign" : "multiplayer";

int pos = remove_nodes_for_type(type);
// For game options, we check for both types and remove them. This is to prevent options from a game
// of one type remaining visible when selecting a game of another type.
int pos = remove_nodes_for_type("campaign");
pos = remove_nodes_for_type("multiplayer");

display_custom_options(type, pos, create_engine_.current_level().data());

Expand Down

0 comments on commit b7d262b

Please sign in to comment.