mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
Add option to share decklists on load.
Took 1 hour 58 minutes Took 9 minutes Took 39 minutes
This commit is contained in:
parent
3a42354efd
commit
0e45652f3f
23 changed files with 198 additions and 25 deletions
|
|
@ -836,6 +836,9 @@ Server_Player::cmdDeckSelect(const Command_DeckSelect &cmd, ResponseContainer &r
|
|||
Context_DeckSelect context;
|
||||
context.set_deck_hash(deck->getDeckHash().toStdString());
|
||||
context.set_sideboard_size(deck->getSideboardSize());
|
||||
if (game->getShareDecklistsOnLoad()) {
|
||||
context.set_deck_list(deck->writeToString_Native().toStdString());
|
||||
}
|
||||
ges.setGameEventContext(context);
|
||||
|
||||
auto *re = new Response_DeckDownload;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue