dkforest

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

commit 924f4a847a48f2f05f70b606f574684cdfc9afca
parent bfc7cf465e3b869ec126b0c79b3a16a44bc0ffed
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun, 17 Dec 2023 06:03:12 -0500

cleanup

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

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -122,7 +122,6 @@ type PokerPlayer struct { GameBet database.PokerChip Bet database.PokerChip AllInMaxGain database.PokerChip - SeatIdx int // 0 indexed Cards []PlayerCard CardsMtx sync.RWMutex Folded atomic.Bool @@ -473,9 +472,9 @@ func NewOngoing(g *PokerGame) *Ongoing { players := make([]*PokerPlayer, 0) g.PlayersMtx.RLock() - for idx, p := range g.Players { + for _, p := range g.Players { if p.isEligible(g.PokerTableMinBet) { - players = append(players, &PokerPlayer{SeatedPlayer: p, SeatIdx: idx}) + players = append(players, &PokerPlayer{SeatedPlayer: p}) } } g.PlayersMtx.RUnlock()