mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
local playing bugfixes
This commit is contained in:
parent
00077565ab
commit
168d184e8f
21 changed files with 71 additions and 52 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "localserverinterface.h"
|
||||
#include "localserver.h"
|
||||
#include <QDebug>
|
||||
|
||||
LocalServerInterface::LocalServerInterface(LocalServer *_server)
|
||||
: Server_ProtocolHandler(_server, _server)
|
||||
|
|
@ -10,10 +11,12 @@ LocalServerInterface::~LocalServerInterface()
|
|||
{
|
||||
}
|
||||
|
||||
bool LocalServerInterface::sendProtocolItem(ProtocolItem *item, bool deleteItem)
|
||||
void LocalServerInterface::sendProtocolItem(ProtocolItem *item, bool deleteItem)
|
||||
{
|
||||
item->setReceiverMayDelete(false);
|
||||
emit itemToClient(item);
|
||||
return false;
|
||||
if (deleteItem)
|
||||
delete item;
|
||||
}
|
||||
|
||||
void LocalServerInterface::itemFromClient(ProtocolItem *item)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue