Fixed deck selection in Deck Editor Menu (now it shows both Classical Decks and Commander Decks using a CMD suffix) and fixed deck selection in Demo Mode (now it filters decks according to game mode as it happens in normal game mode).

This commit is contained in:
Vittorio Alfieri
2021-02-05 11:25:04 +01:00
parent 8c031585cf
commit f1ee227b84
5 changed files with 15 additions and 12 deletions

View File

@@ -172,7 +172,7 @@ void GameStateDeckViewer::updateDecks()
{
SAFE_DELETE(welcome_menu);
welcome_menu = NEW DeckEditorMenu(MENU_DECK_SELECTION, this, Fonts::OPTION_FONT, "Choose Deck To Edit");
vector<DeckMetaData *> playerDeckList = fillDeckMenu(welcome_menu, options.profileFile());
vector<DeckMetaData *> playerDeckList = fillDeckMenu(welcome_menu, options.profileFile(), "", NULL, 0, GAME_TYPE_CLASSIC, true); // Show all decks in deck editor menu...
newDeckname = "";
welcome_menu->Add(MENU_ITEM_NEW_DECK, "--NEW--");