dkforest

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

commit 8a524a3122d539b2a72d7ab055b0a8cfde196a97
parent 35bd9c83435daf662bb7c61559fc299e58827903
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat, 16 Dec 2023 23:48:51 -0500

allow bet under minBet if it is to match the current table bet (small blind)

Diffstat:
Mpkg/web/handlers/poker/poker.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -641,7 +641,7 @@ RoundIsSettledLoop: pokerTableMinBet := g.PokerTableMinBet bet := evt.Bet // Ensure the player cannot bet below the table minimum bet (amount of the big blind) - if bet < pokerTableMinBet { + if p.Bet+bet != minBet && bet < pokerTableMinBet { msg := fmt.Sprintf("Bet (%d) is too low. Must bet at least %d", bet, pokerTableMinBet) PokerPubSub.Pub(roomUserTopic, ErrorMsgEvent{Message: msg}) return continueGetPlayerEventLoop