merge Feature/host when enter empty lobby into master #5

Merged
SemvdH merged 2 commits from feature/hostWhenEnterEmptyLobby into master 2020-10-22 11:23:30 +00:00
Showing only changes of commit 471247827b - Show all commits

View File

@@ -207,6 +207,10 @@ namespace Server.Models
{ {
if (l.ID == id) if (l.ID == id)
{ {
if (l.Users.Count == 0)
{
user.Host = true;
}
AddToLobby(l, user); AddToLobby(l, user);
Debug.WriteLine($"{user.Username} joined lobby with id {id}"); Debug.WriteLine($"{user.Username} joined lobby with id {id}");
break; break;