dkforest

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

commit 4aba710f512d36fec4a53e3ca4c6f240f890b337
parent 6d0fda93a71448c6c5df77bb738af75f39e6363c
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu,  7 Dec 2023 20:37:28 -0500

fix bug

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

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -233,15 +233,16 @@ func isRoundSettled(players []*PokerPlayer) bool { continue } if p.Cash == 0 { // all in + if b == -1 { + b = p.Bet + } continue } if b == -1 { b = p.Bet - } else { - if p.Bet != b { - allSettled = false - break - } + } else if p.Bet != b { + allSettled = false + break } } return allSettled