OSDN Git Service

[Fix] #37353 クエスト対象のモンスターが表示されなくなる可能性のあるを修正 / Fixed possible issue that quest monster...
authorHourier <hourier@users.sourceforge.jp>
Sat, 8 Feb 2020 15:53:23 +0000 (00:53 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 8 Feb 2020 15:53:23 +0000 (00:53 +0900)
src/quest.c

index ae0b124..9b5510f 100644 (file)
@@ -364,8 +364,8 @@ void quest_discovery(QUEST_IDX q_idx)
                return;
        }
 
-       bool is_random_quest_skipped = (r_ptr->flags1 & RF1_UNIQUE);
-       is_random_quest_skipped &= 0 == r_ptr->max_num;
+       bool is_random_quest_skipped = (r_ptr->flags1 & RF1_UNIQUE) != 0;
+       is_random_quest_skipped &= r_ptr->max_num == 0;
        if (!is_random_quest_skipped)
        {
                msg_format(_("注意せよ!この階は%sによって守られている!", "Beware, this level is protected by %s!"), name);