mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
phase toolbar fixed
This commit is contained in:
parent
0b98d90337
commit
4d0c9962f4
3 changed files with 11 additions and 6 deletions
|
|
@ -384,8 +384,10 @@ void TabGame::processGameEventContainer(GameEventContainer *cont)
|
|||
|
||||
void TabGame::sendGameCommand(GameCommand *command, int playerId)
|
||||
{
|
||||
if (playerId == -1)
|
||||
playerId = getActiveLocalPlayer()->getId();
|
||||
|
||||
command->setGameId(gameId);
|
||||
|
||||
AbstractClient *client;
|
||||
if (clients.size() > 1)
|
||||
client = clients.at(playerId);
|
||||
|
|
@ -396,6 +398,9 @@ void TabGame::sendGameCommand(GameCommand *command, int playerId)
|
|||
|
||||
void TabGame::sendCommandContainer(CommandContainer *cont, int playerId)
|
||||
{
|
||||
if (playerId == -1)
|
||||
playerId = getActiveLocalPlayer()->getId();
|
||||
|
||||
const QList<Command *> &cmdList = cont->getCommandList();
|
||||
for (int i = 0; i < cmdList.size(); ++i) {
|
||||
GameCommand *cmd = qobject_cast<GameCommand *>(cmdList[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue