Commit e4204371 authored by Michael Lang's avatar Michael Lang Committed by Albert Astals Cid
Browse files

Disallow multiple card removal when options do not allow empty tableau filling

parent eb1e0bb2
......@@ -265,12 +265,19 @@ bool BakersDozen::checkRemove(const PatPile * pile, const QList<KCard*> & cards)
switch (pile->pileRole())
{
case PatPile::Tableau:
if (m_sequenceBuiltBy == 1)
return isSameSuitDescending(cards);
else if (m_sequenceBuiltBy == 0)
return isAlternateColorDescending(cards);
if (m_emptyStackFill == 2)
{
return cards.size() == 1;
}
else
return isRankDescending(cards);
{
if (m_sequenceBuiltBy == 1)
return isSameSuitDescending(cards);
else if (m_sequenceBuiltBy == 0)
return isAlternateColorDescending(cards);
else
return isRankDescending(cards);
}
case PatPile::Cell:
return cards.first() == pile->topCard();
case PatPile::Foundation:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment