This commit is contained in:
2026-07-05 18:41:12 +03:30
parent 37baef565e
commit 045e304853
8 changed files with 42 additions and 24 deletions
+5 -3
View File
@@ -391,10 +391,12 @@ func (h *Hub) removeFromTable(t *pendingTable, c *Client) {
func (h *Hub) broadcastLobby(t *pendingTable) {
players := make([]lobbyPlayer, len(t.clients))
for i, cl := range t.clients {
_, _, avatar := h.settler.PlayerProfile(cl.UserID)
players[i] = lobbyPlayer{
Name: cl.Name,
Host: cl.UserID == t.host,
Seat: t.seatOf(i),
Name: cl.Name,
Avatar: avatar,
Host: cl.UserID == t.host,
Seat: t.seatOf(i),
}
}
for i, cl := range t.clients {