OSDN Git Service

#37454 (2.2.0.51) カジノのポーカーで一部のファイブカードをファイブエースとして扱う不具合を修正。 / Fix a bug that parts...
authorDeskull <desull@users.sourceforge.jp>
Wed, 23 Aug 2017 15:17:35 +0000 (00:17 +0900)
committerDeskull <desull@users.sourceforge.jp>
Wed, 23 Aug 2017 15:17:35 +0000 (00:17 +0900)
src/bldg.c
src/defines.h

index 3e3b45b..9b4ad3a 100644 (file)
@@ -681,7 +681,7 @@ static int yaku_check(void)
                c_put_str(TERM_YELLOW, _("フォーカード", "Four of a kind"),  4,  3);
                return ODDS_4C;
        case 7:
-               if (!NUM_OF(cards[0]) || !NUM_OF(cards[1]))
+               if (!NUM_OF(cards[0]) && !NUM_OF(cards[1]))
                {
                        c_put_str(TERM_YELLOW, _("ファイブエース", "Five ace"),  4,  3);
                        return ODDS_5A;
@@ -1051,6 +1051,22 @@ static int do_poker(void)
        cards[4] = 3;
 #endif
 #if 0
+       /* debug:Five Card1 */
+       cards[0] = 4;
+       cards[1] = 52;
+       cards[2] = 4 + 13;
+       cards[3] = 4 + 26;
+       cards[4] = 4 + 39;
+#endif
+#if 0
+       /* debug:Five Card2 */
+       cards[1] = 52;
+       cards[0] = 4;
+       cards[2] = 4 + 13;
+       cards[3] = 4 + 26;
+       cards[4] = 4 + 39;
+#endif
+#if 0
        /* debug */
        cards[0] = 52;
        cards[1] = 0;
index 80c2205..64a7e37 100644 (file)
@@ -53,7 +53,7 @@
 #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */
 #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */
 #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */
-#define FAKE_VER_EXTRA 50 /*!< ゲームのバージョン番号定義(エクストラ番号) */
+#define FAKE_VER_EXTRA 51 /*!< ゲームのバージョン番号定義(エクストラ番号) */
 
 
  /*!