mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 09:33:57 -07:00
reformat
This commit is contained in:
parent
290259cbc3
commit
381ad79ac9
1 changed files with 2 additions and 3 deletions
|
|
@ -763,9 +763,8 @@ void Server_Game::sendGameEventContainer(GameEventContainer *cont,
|
|||
|
||||
cont->set_game_id(gameId);
|
||||
for (auto *participant : participants.values()) {
|
||||
const bool playerPrivate =
|
||||
(participant->getPlayerId() == privatePlayerId) ||
|
||||
(participant->isSpectator() && (spectatorsSeeEverything || participant->isJudge()));
|
||||
const bool playerPrivate = (participant->getPlayerId() == privatePlayerId) ||
|
||||
(participant->isSpectator() && (spectatorsSeeEverything || participant->isJudge()));
|
||||
if ((recipients.testFlag(GameEventStorageItem::SendToPrivate) && playerPrivate) ||
|
||||
(recipients.testFlag(GameEventStorageItem::SendToOthers) && !playerPrivate))
|
||||
participant->sendGameEvent(*cont);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue