mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Minor bugfixes
This commit is contained in:
parent
a11f93df4d
commit
e31cfd32b1
9 changed files with 26 additions and 17 deletions
|
|
@ -84,6 +84,8 @@ Game::Game(CardDatabase *_db, Client *_client, QGraphicsScene *_scene, QMenu *_a
|
|||
cardMenu->addAction(aRearrange);
|
||||
|
||||
dlgStartGame = new DlgStartGame(db);
|
||||
connect(dlgStartGame, SIGNAL(newDeckLoaded(const QStringList &)), client, SLOT(submitDeck(const QStringList &)));
|
||||
connect(dlgStartGame, SIGNAL(finished(int)), this, SLOT(readyStart(int)));
|
||||
}
|
||||
|
||||
Game::~Game()
|
||||
|
|
@ -139,10 +141,16 @@ void Game::playerListReceived(QList<ServerPlayer *> playerList)
|
|||
restartGameDialog();
|
||||
}
|
||||
|
||||
void Game::readyStart(int foo)
|
||||
{
|
||||
Q_UNUSED(foo);
|
||||
|
||||
client->readyStart();
|
||||
}
|
||||
|
||||
void Game::restartGameDialog()
|
||||
{
|
||||
dlgStartGame->exec();
|
||||
client->submitDeck(dlgStartGame->getDeckList());
|
||||
dlgStartGame->show();
|
||||
}
|
||||
|
||||
void Game::gameEvent(ServerEventData *msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue