[REMOVE] removed the checks for who is host

This commit is contained in:
Sem van der Hoeven
2020-10-23 17:27:43 +02:00
parent 13cf0e44ee
commit 1d8963ec60
4 changed files with 21 additions and 11 deletions

View File

@@ -226,13 +226,18 @@ namespace Client
case JSONConvert.GameCommand.INITIALIZE:
int lobbyID = JSONConvert.GetLobbyID(payload);
string userName = JSONConvert.GetUsernameLogin(payload);
if (lobbyID == clientData.Lobby.ID)
if (lobbyID == clientData.Lobby.ID)
{
if (userName == clientData.User.Username)
{
clientData.User.TurnToDraw = true;
Debug.WriteLine("[CLIENT] Setting a player's turnToDraw to true");
}
}
clientData.Client.UpdateUserScores?.Invoke(clientData.Lobby);
}
break;
}