diff options
Diffstat (limited to 'internal/game/casino.go')
| -rw-r--r-- | internal/game/casino.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/internal/game/casino.go b/internal/game/casino.go index e6c0f27..db5bfad 100644 --- a/internal/game/casino.go +++ b/internal/game/casino.go @@ -632,8 +632,8 @@ func (g *Game) casinoMenuParts(sess *net.Session, menu *casino.MenuView, message return balance, heading, commands } -// casinoBoardReminder splits roulette and craps menus so instructions can be -// printed under the betting board, which is the table the reminder refers to. +// casinoBoardReminder splits a persistent-board menu (craps, roulette, video +// poker, Pai Gow) so its instructions print under the board they describe. // Every other game, and compact displays, keep their menu in one block. func (g *Game) casinoBoardReminder(sess *net.Session, category string, menu *casino.MenuView, snapshot casino.Snapshot, message string) (header, reminder string, ok bool) { if category != "casino_menu" || menu == nil || sess.Player == nil { @@ -641,11 +641,12 @@ func (g *Game) casinoBoardReminder(sess *net.Session, category string, menu *cas } _, isCraps := snapshot.(*casino.CrapsSnapshot) _, isPoker := snapshot.(*casino.VideoPokerSnapshot) + _, isPaiGow := snapshot.(*casino.PaiGowSnapshot) s, isRoulette := snapshot.(*casino.RouletteSnapshot) - if !isPoker && !isCraps && (!isRoulette || s.Phase == "playing" || s.Phase == "result") { + if !isPoker && !isCraps && !isPaiGow && (!isRoulette || s.Phase == "playing" || s.Phase == "result") { return "", "", false } - if !isPoker && !isCraps && sess.Player.OptionString("casino_display") == "compact" && (menu.Repeat || !menu.ShowBalance) { + if !isPoker && !isCraps && !isPaiGow && sess.Player.OptionString("casino_display") == "compact" && (menu.Repeat || !menu.ShowBalance) { // The compact reminder is already a short block; leave it intact. return "", "", false } |
