dkforest

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

commit 40fda631a22d2dc108454986642456ea0ee80c25
parent 2920c869c29d15df270b39423eafd0b7bf9cf218
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri,  8 Dec 2023 15:10:13 -0500

typo

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

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -378,7 +378,7 @@ func showCards(g *PokerGame, roomTopic string, seats []Seat) { // Return either or not the game ended because only 1 player left playing func waitPlayersActionFn(g *PokerGame, roomID string, skip, minBet int) bool { roomTopic := "room_" + roomID - lastRisePlayerIdx := -1 + lastRaisePlayerIdx := -1 // Avoid asking for actions if only 1 player can do so (because others are all-in) nbCanVote := 0 @@ -416,7 +416,7 @@ OUTER: continue } } - if p.SeatIdx == lastRisePlayerIdx { + if p.SeatIdx == lastRaisePlayerIdx { break OUTER } player := g.Ongoing.GetPlayer(p.Username) @@ -525,7 +525,7 @@ OUTER: continue } if (p.Bet + bet) > minBet { - lastRisePlayerIdx = p.SeatIdx + lastRaisePlayerIdx = p.SeatIdx } minBet = p.Bet + bet p.doBet(bet)