sys-apps/mawk: add support for -W sandbox mode
[gentoo.git] / games-board / holdingnuts / files / holdingnuts-0.0.5-wheel.patch
1 Description: fixed gamelogic bug with wheel-straight: check suit of ace if testing for straight-flush
2 Origin: https://sourceforge.net/apps/trac/holdingnuts/changeset/741
3 --- a/src/libpoker/GameLogic.cpp
4 +++ b/src/libpoker/GameLogic.cpp
5 @@ -179,7 +179,11 @@
6         
7         // is an A2345-straight ("wheel")
8         if (count == 4 && (last_face == Card::Two && allcards->front().getFace() == Card::Ace))
9 -               is_straight = true;
10 +       {
11 +               // check suit when testing for StraightFlush
12 +               if (suit == -1 || allcards->front().getSuit() == suit)
13 +                       is_straight = true;
14 +       }
15         
16         if (is_straight)
17         {