mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
unborked
This commit is contained in:
parent
70b37804db
commit
ec234e0499
1 changed files with 5 additions and 4 deletions
|
|
@ -331,12 +331,13 @@ void ZoneViewZone::handleDropEvent(const QList<CardDragItem *> &dragItems,
|
|||
player->sendGameCommand(cmd);
|
||||
}
|
||||
|
||||
void ZoneViewZone::removeCard(const int position)
|
||||
void ZoneViewZone::removeCard(int position)
|
||||
{
|
||||
if (isReversed) {
|
||||
int bottomPos = position - cards.first()->getId();
|
||||
if (bottomPos < 0 || bottomPos >= cards.size()) {
|
||||
updateCardIds(REMOVE_CARD, bottomPos);
|
||||
int initialPos = position;
|
||||
position -= cards.first()->getId();
|
||||
if (position < 0 || position >= cards.size()) {
|
||||
updateCardIds(REMOVE_CARD, initialPos);
|
||||
reorganizeCards();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue