diff options
| author | historia <[not public]> | 2026-10-01 19:30:38 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-01 19:30:38 -0400 |
| commit | 6d9908b29c8187196d23b126b1165c7e0bd0fc76 (patch) | |
| tree | ddbc02357ed92646b801687b90b1a06c71a15d71 /internal/casino/baccarat.go | |
| parent | 8a94f21bd47c0a00bc415395232dba22fa958837 (diff) | |
| download | thehouseoficarus-6d9908b29c8187196d23b126b1165c7e0bd0fc76.tar.gz | |
fix: casino pai gow sorting, universal unbet, table/rules split, remove solo timers
Diffstat (limited to 'internal/casino/baccarat.go')
| -rw-r--r-- | internal/casino/baccarat.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/casino/baccarat.go b/internal/casino/baccarat.go index 122deed..e6af047 100644 --- a/internal/casino/baccarat.go +++ b/internal/casino/baccarat.go @@ -148,6 +148,10 @@ func (t *baccaratTable) tick() []Event { func (t *baccaratTable) action(name, action string) []Event { t.mu.Lock() defer t.mu.Unlock() + if action == "unbet" { + events, _ := t.unbetLocked(name) + return events + } if events, handled := t.controlLocked(name, action); handled { if t.phase == baccaratBetting && allBet(t.players.participants()) { return append(events, t.deal()...) |
