OSDN Git Service

#37449 (2.2.0.82) msg_print()のエンバグを起こすおそれのある修正を差し戻し。 / Revert a fix of msg_print...
authorDeskull <desull@users.sourceforge.jp>
Thu, 7 Sep 2017 14:05:14 +0000 (23:05 +0900)
committerDeskull <desull@users.sourceforge.jp>
Thu, 7 Sep 2017 14:05:14 +0000 (23:05 +0900)
src/defines.h
src/util.c

index ea5349e..03d73d1 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 81 /*!< ゲームのバージョン番号定義(エクストラ番号) */
+#define FAKE_VER_EXTRA 82 /*!< ゲームのバージョン番号定義(エクストラ番号) */
 
 
  /*!
index 9cd138d..7e377a6 100644 (file)
@@ -2833,9 +2833,6 @@ void msg_print(cptr msg)
 
        if (world_monster) return;
 
-       /* No message */
-       if (!msg) return;
-
        /* Copy it */
        if(!cheat_turn)
        {
@@ -2872,6 +2869,9 @@ void msg_print(cptr msg)
                p = 0;
        }
 
+       /* No message */
+       if (!msg) return;
+
        /* Memorize the message */
        if (character_generated) message_add(buf);