summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-board/holdingnuts/files/holdingnuts-0.0.5-wheel.patch')
-rw-r--r--games-board/holdingnuts/files/holdingnuts-0.0.5-wheel.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/games-board/holdingnuts/files/holdingnuts-0.0.5-wheel.patch b/games-board/holdingnuts/files/holdingnuts-0.0.5-wheel.patch
new file mode 100644
index 000000000000..447d574ffea6
--- /dev/null
+++ b/games-board/holdingnuts/files/holdingnuts-0.0.5-wheel.patch
@@ -0,0 +1,17 @@
+Description: fixed gamelogic bug with wheel-straight: check suit of ace if testing for straight-flush
+Origin: http://sourceforge.net/apps/trac/holdingnuts/changeset/741
+--- a/src/libpoker/GameLogic.cpp
++++ b/src/libpoker/GameLogic.cpp
+@@ -179,7 +179,11 @@
+
+ // is an A2345-straight ("wheel")
+ if (count == 4 && (last_face == Card::Two && allcards->front().getFace() == Card::Ace))
+- is_straight = true;
++ {
++ // check suit when testing for StraightFlush
++ if (suit == -1 || allcards->front().getSuit() == suit)
++ is_straight = true;
++ }
+
+ if (is_straight)
+ { \ No newline at end of file