dkforest

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

commit f042648a87831a3063a23aaf64d7324f6ca81d39
parent 0b03530fac14f3baf863001e11031c6e25723d8e
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 14 Dec 2023 14:40:48 -0500

cleanup

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

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -860,7 +860,9 @@ func dealerThread(db *database.DkfDB, g *PokerGame, roomID string) { } // No flop, no drop - collectRake = true + if !g.PokerTableIsTest { + collectRake = true + } // Wait for players to bet/call/check/fold... time.Sleep(time.Second) @@ -900,10 +902,6 @@ func dealerThread(db *database.DkfDB, g *PokerGame, roomID string) { END: - if g.PokerTableIsTest { - collectRake = false - } - winners := g.Ongoing.computeWinners() mainPot := database.PokerChip(g.Ongoing.MainPot.Load()) playersGain, rake := processPot(winners, mainPot, collectRake)