mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
Cleaned up decklist code
This commit is contained in:
parent
ab11a40863
commit
16541141bd
11 changed files with 144 additions and 487 deletions
|
|
@ -175,9 +175,9 @@ void DeckViewContainer::readyStart()
|
|||
void DeckViewContainer::sideboardPlanChanged()
|
||||
{
|
||||
Command_SetSideboardPlan cmd;
|
||||
QList<MoveCardToZone *> newPlan = deckView->getSideboardPlan();
|
||||
const QList<MoveCard_ToZone> &newPlan = deckView->getSideboardPlan();
|
||||
for (int i = 0; i < newPlan.size(); ++i)
|
||||
cmd.add_move_list()->CopyFrom(newPlan[i]->toPB());
|
||||
cmd.add_move_list()->CopyFrom(newPlan[i]);
|
||||
static_cast<TabGame *>(parent())->sendGameCommand(cmd, playerId);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue