mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 06:22:15 -07:00
Check spectators as a whole.
Took 2 minutes
This commit is contained in:
parent
2371df1c77
commit
48287363b2
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ void GameEventHandler::eventGameStateChanged(const Event_GameStateChanged &event
|
|||
QString playerName = "@" + QString::fromStdString(prop.user_info().name());
|
||||
emit addPlayerToAutoCompleteList(playerName);
|
||||
if (prop.spectator()) {
|
||||
if (game->getPlayerManager()->getSpectator(playerId).id() == -1) {
|
||||
if (!game->getPlayerManager()->getSpectators().contains(playerId)){
|
||||
game->getPlayerManager()->addSpectator(playerId, prop);
|
||||
emit spectatorJoined(prop);
|
||||
emit logJoinSpectator(playerName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue