diff --git a/common/decklist.cpp b/common/decklist.cpp index cd1a4352..ee18f5cb 100644 --- a/common/decklist.cpp +++ b/common/decklist.cpp @@ -799,7 +799,6 @@ bool DeckList::deleteNode(AbstractDecklistNode *node, InnerDecklistNode *rootNod void DeckList::updateDeckHash() { QStringList cardList; - bool isValidDeckList = true; QSet hashZones, optionalZones; hashZones << DECK_ZONE_MAIN << DECK_ZONE_SIDE; // Zones in deck to be included in hashing process @@ -814,9 +813,6 @@ void DeckList::updateDeckHash() for (int k = 0; k < card->getNumber(); ++k) { cardList.append((node->getName() == DECK_ZONE_SIDE ? "SB:" : "") + card->getName().toLower()); } - } else if (!optionalZones.contains(node->getName())) // Not a valid zone -> cheater? - { - isValidDeckList = false; // Deck is invalid } } } @@ -826,7 +822,7 @@ void DeckList::updateDeckHash() (((quint64)(unsigned char)deckHashArray[1]) << 24) + (((quint64)(unsigned char)deckHashArray[2] << 16)) + (((quint64)(unsigned char)deckHashArray[3]) << 8) + (quint64)(unsigned char)deckHashArray[4]; - deckHash = (isValidDeckList) ? QString::number(number, 32).rightJustified(8, '0') : "INVALID"; + deckHash = QString::number(number, 32).rightJustified(8, '0'); emit deckHashChanged(); }