dkforest

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

commit 3cc5b6472c4e037cdfd9ef429f1b961af0b017ec
parent f6fffe0885741440a60ff18a0523232f2da8d1a6
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon, 25 Dec 2023 15:45:23 -0500

cleanup

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

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -965,9 +965,10 @@ func handlePlayerActionEvent(g *Game, p *PokerPlayer, func execBettingRound(g *Game, skip int, minBet database.PokerChip) bool { roomID := g.roomID roomTopic := roomID.Topic() + gPokerTableMinBet := g.pokerTableMinBet g.ongoing.minBet.Set(minBet) - g.ongoing.minRaise.Set(g.pokerTableMinBet) - PubSub.Pub(roomTopic, PokerMinRaiseUpdatedEvent{MinRaise: g.pokerTableMinBet}) + g.ongoing.minRaise.Set(gPokerTableMinBet) + PubSub.Pub(roomTopic, PokerMinRaiseUpdatedEvent{MinRaise: gPokerTableMinBet}) db := g.db ongoing := g.ongoing _, dealerIdx := ongoing.getPlayerBySeatIdx(int(g.dealerSeatIdx.Load())) @@ -1271,7 +1272,7 @@ func dealerThread(g *Game, eligiblePlayers seatedPlayers) { applyBigBlindBet(g, bigBlindBet, bbIdx) time.Sleep(animationTime) g.ongoing.hasBet.Set(true) - g.ongoing.minRaise.Set(g.pokerTableMinBet) + g.ongoing.minRaise.Set(bigBlindBet) // Deal players cards dealPlayersCards(g, seats, &idx)