OSDN Git Service

[Fix] #41412 Auto-Moreオフの時のESCの挙動が以前と異なる
authordis- <dis.rogue@gmail.com>
Mon, 1 Feb 2021 11:05:01 +0000 (20:05 +0900)
committerdis- <dis.rogue@gmail.com>
Mon, 1 Feb 2021 11:05:01 +0000 (20:05 +0900)
5a1faa0419cab1398e312323d41bc9912e07a74dの修正で、Auto-Moreオフのときの挙動が正常でなかった。
従来の挙動を調査し、ESCで全メッセージを流すように修正。
また、メッセージウィンドウがある場合一画面ずつ流す処理も正常動作するよう修正した。

src/view/display-messages.c

index 48101a2..7baae17 100644 (file)
@@ -265,8 +265,10 @@ bool is_msg_window_flowed(void)
     if (i < 8) {
         if (num_more < angband_term[i]->hgt)
             return FALSE;
+
+        return (num_more >= 0);
     }
-    return TRUE;
+    return (num_more >= 0);
 }
 
 /*
@@ -275,7 +277,7 @@ bool is_msg_window_flowed(void)
 static void msg_flush(player_type *player_ptr, int x)
 {
     byte a = TERM_L_BLUE;
-    bool show_more = !auto_more || is_msg_window_flowed();
+    bool show_more = is_msg_window_flowed();
 
     if (auto_more && (quick_messages || !player_ptr->now_damaged))
         show_more = FALSE;
@@ -440,4 +442,4 @@ void msg_format(concptr fmt, ...)
     (void)vstrnfmt(buf, 1024, fmt, vp);
     va_end(vp);
     msg_print(buf);
-}
\ No newline at end of file
+}