mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
user level display
This commit is contained in:
parent
5b75cea661
commit
23a0080c45
16 changed files with 1030 additions and 60 deletions
|
|
@ -553,6 +553,8 @@ void TabGame::eventPlayerPropertiesChanged(Event_PlayerPropertiesChanged *event,
|
|||
void TabGame::eventJoin(Event_Join *event, GameEventContext * /*context*/)
|
||||
{
|
||||
ServerInfo_PlayerProperties *playerInfo = event->getPlayer();
|
||||
if (players.contains(playerInfo->getPlayerId()))
|
||||
return;
|
||||
if (playerInfo->getSpectator()) {
|
||||
spectators.insert(playerInfo->getPlayerId(), playerInfo->getUserInfo()->getName());
|
||||
messageLog->logJoinSpectator(playerInfo->getUserInfo()->getName());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue