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