diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2010-03-05 21:30:30 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2010-03-05 21:30:30 +0000 |
commit | 685dc5ff15bec614353b5db55da6b50373eb492b (patch) | |
tree | 42e92b51373e3245cc853391c06bf7cc94f8623f /games-board/holdingnuts/files | |
parent | Version Bump jython to 2.5.1 (diff) | |
download | gentoo-2-685dc5ff15bec614353b5db55da6b50373eb492b.tar.gz gentoo-2-685dc5ff15bec614353b5db55da6b50373eb492b.tar.bz2 gentoo-2-685dc5ff15bec614353b5db55da6b50373eb492b.zip |
upstream patch for wheel handling (bug #307901)
(Portage version: 2.1.7.17/cvs/Linux i686)
Diffstat (limited to 'games-board/holdingnuts/files')
-rw-r--r-- | games-board/holdingnuts/files/holdingnuts-0.0.5-wheel.patch | 17 |
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 |