dkforest

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

commit 71bfc9048c3ee9eb51aaf25dacf651d0e6dad185
parent 88e113ae3a6ddcd63ef3beb8da65a08690b7be53
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon, 18 Dec 2023 21:24:45 -0500

doc

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

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -176,6 +176,7 @@ func (p *PokerPlayer) gain(db *database.DkfDB, pokerTableID int64, gain database p.Bet.With(func(bet *database.PokerChip) { *bet = 0 }) } +// Reset player's bet to 0 and return the value it had before the reset func (p *PokerPlayer) resetBet() (old database.PokerChip) { // Do not track in database // DB keeps track of what was bet during the whole (1 hand) game