mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
server has to assign free table space for a new card so that there is no race condition
This commit is contained in:
parent
9f79bd2c8e
commit
62a9003d3e
7 changed files with 69 additions and 62 deletions
|
|
@ -209,7 +209,7 @@ void CardItem::playCard(QGraphicsSceneMouseEvent *event)
|
|||
bool tapped = info->getCipt();
|
||||
|
||||
TableZone *table = zone->getPlayer()->getTable();
|
||||
QPoint gridPoint = table->getFreeGridPoint(info->getTableRow());
|
||||
QPoint gridPoint = QPoint(-1, 3 - info->getTableRow());
|
||||
table->handleDropEventByGrid(id, zone, gridPoint, faceDown, tapped);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue