dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 0cd9aed1fbde986148569587e86705704e501e3f
parent f496e4afff31c109c9c118a294bd9f10d00900fb
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon, 18 Dec 2023 21:34:22 -0500

cleanup

Diffstat:
Mpkg/web/handlers/poker/poker.go | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -932,8 +932,9 @@ var dealerTokenPos = [][]int{ } func dealPlayersCards(g *PokerGame, seats []Seat, idx *int) { + roomID := g.RoomID ongoing := g.Ongoing - roomTopic := g.RoomID.Topic() + roomTopic := roomID.Topic() var card string for cardIdx := 1; cardIdx <= NbCardsPerPlayer; cardIdx++ { for _, p := range ongoing.Players { @@ -941,7 +942,7 @@ func dealPlayersCards(g *PokerGame, seats []Seat, idx *int) { if p.isAllIn() { continue } - roomUserTopic := g.RoomID.UserTopic(pUsername) + roomUserTopic := roomID.UserTopic(pUsername) seatData := seats[p.SeatIdx] time.Sleep(time.Second) if p.Folded.Load() {