mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 06:22:15 -07:00
Only use normal layout cards as a background source.
Took 11 minutes
This commit is contained in:
parent
9c3be1b851
commit
a888efda56
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ void HomeWidget::updateRandomCard()
|
|||
case BackgroundSources::RandomCardArt:
|
||||
do {
|
||||
newCard = CardDatabaseManager::getInstance()->getRandomCard();
|
||||
} while (newCard == backgroundSourceCard->getCard());
|
||||
} while (newCard == backgroundSourceCard->getCard() &&
|
||||
newCard.getCardPtr()->getProperty("layout") != "normal");
|
||||
break;
|
||||
case BackgroundSources::DeckFileArt:
|
||||
QList<CardRef> cardRefs = backgroundSourceDeck->getCardRefList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue