mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -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
|
|
@ -493,7 +493,7 @@ void Player::actCreateToken()
|
|||
{
|
||||
QString cardname = QInputDialog::getText(0, tr("Create token"), tr("Name:"));
|
||||
if (!cardname.isEmpty())
|
||||
sendGameCommand(new Command_CreateToken(-1, "table", cardname, QString(), 0, 0));
|
||||
sendGameCommand(new Command_CreateToken(-1, "table", cardname, QString(), -1, 0));
|
||||
}
|
||||
|
||||
void Player::actSayMessage()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue