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
|
|
@ -36,9 +36,7 @@ void Server_ChatChannel::say(Server_ProtocolHandler *client, const QString &s)
|
|||
|
||||
void Server_ChatChannel::sendChatEvent(ChatEvent *event)
|
||||
{
|
||||
bool mayDelete = true;
|
||||
for (int i = 0; i < size(); ++i)
|
||||
mayDelete = at(i)->sendProtocolItem(event, false);
|
||||
if (mayDelete)
|
||||
delete event;
|
||||
at(i)->sendProtocolItem(event, false);
|
||||
delete event;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue