mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-07 05:53:59 -07:00
minor cleanup
This commit is contained in:
parent
667c1336e2
commit
bdece4623c
1 changed files with 6 additions and 2 deletions
|
|
@ -445,7 +445,9 @@ void PlayerActions::moveTopCardsTo(const QString &targetZone, const QString &zon
|
|||
maxCards, 1, &ok);
|
||||
if (!ok) {
|
||||
return;
|
||||
} else if (number > maxCards) {
|
||||
}
|
||||
|
||||
if (number > maxCards) {
|
||||
number = maxCards;
|
||||
}
|
||||
defaultNumberTopCards = number;
|
||||
|
|
@ -627,7 +629,9 @@ void PlayerActions::moveBottomCardsTo(const QString &targetZone, const QString &
|
|||
maxCards, 1, &ok);
|
||||
if (!ok) {
|
||||
return;
|
||||
} else if (number > maxCards) {
|
||||
}
|
||||
|
||||
if (number > maxCards) {
|
||||
number = maxCards;
|
||||
}
|
||||
defaultNumberBottomCards = number;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue