dkforest

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

commit 5a3b50ae3e2ee6144b519954dce409b5761785c9
parent 159578f5478cbd1a74b13ecdb5b8f7d7f96f2889
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 13 Dec 2023 21:26:43 -0500

cleanup

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

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -602,7 +602,7 @@ OUTER: newLogEvent(g, roomLogsTopic, fmt.Sprintf("%s check", p.Username)) } else if evt.Call { - bet := database.PokerChip(utils.MinInt(uint64(minBet-p.Bet), uint64(p.Cash))) + bet := utils.MinInt(minBet-p.Bet, p.Cash) if bet == 0 { newLogEvent(g, roomLogsTopic, fmt.Sprintf("%s check", p.Username)) } else { @@ -681,7 +681,7 @@ END1: for _, p := range newlyAllInPlayers { maxGain := mainPot for _, op := range g.Ongoing.Players { - maxGain += database.PokerChip(utils.MinInt(uint64(op.Bet), uint64(p.Bet))) + maxGain += utils.MinInt(op.Bet, p.Bet) } p.AllInMaxGain = maxGain }