OSDN Git Service

#37523 (2.2.0.91) stop_hex_spell_all()で呪術を停止した時メッセージが表示されない不具合を修正。 / Fix not print...
authorDeskull <desull@users.sourceforge.jp>
Wed, 20 Sep 2017 15:23:06 +0000 (00:23 +0900)
committerDeskull <desull@users.sourceforge.jp>
Wed, 20 Sep 2017 15:23:06 +0000 (00:23 +0900)
src/defines.h
src/hex.c

index 4640828..14922db 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 90 /*!< ゲームのバージョン番号定義(エクストラ番号) */
+#define FAKE_VER_EXTRA 91 /*!< ゲームのバージョン番号定義(エクストラ番号) */
 
 
  /*!
index fb06310..70a3f3c 100644 (file)
--- a/src/hex.c
+++ b/src/hex.c
@@ -29,8 +29,7 @@ bool stop_hex_spell_all(void)
 
        for (i = 0; i < 32; i++)
        {
-               u32b spell = 1L << i;
-               if (hex_spelling(spell)) do_spell(REALM_HEX, spell, SPELL_STOP);
+               if (hex_spelling(i)) do_spell(REALM_HEX, i, SPELL_STOP);
        }
 
        p_ptr->magic_num1[0] = 0;