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