ctm / mb2-doc

Mb2, poker software
https://devctm.com
7 stars 2 forks source link

could not discard during scrotum #1141

Closed ctm closed 1 year ago

ctm commented 1 year ago

Fix the bug that prevented memyself and me (deadhead) from discarding in scrotum.

The GUI was asking us to choose two hold'em cards as though were were playing SOHE. This was in SAM_6.

ctm commented 1 year ago

This bug was also appearing in yesterday evening's HOSDARSS tournament. FWIW, it looks like there's a trivial fix, but I will want to reproduce the problem locally before applying the fix just to make sure I'm right.

ctm commented 1 year ago

Deploying now.

[master]% git diff
diff --git a/mb2/src/table.rs b/mb2/src/table.rs
index f1dccb01..8647d697 100644
--- a/mb2/src/table.rs
+++ b/mb2/src/table.rs
@@ -4924,6 +4924,7 @@ pub trait NextActions {

 impl NextActions for Table {
     fn begin_hand_pre_shuffle(&mut self) {
+        self.cards_are_settable = false;
         self.die = Default::default();
         self.temporary_has_blinds_override = false;
         self.action_synchronizer.increment_hand();