]> granicus.if.org Git - nethack/commitdiff
Curses: Obey timed_delay option
authorPasi Kallinen <paxed@alt.org>
Thu, 19 May 2022 15:40:15 +0000 (18:40 +0300)
committerPasi Kallinen <paxed@alt.org>
Thu, 19 May 2022 15:40:15 +0000 (18:40 +0300)
doc/fixes3-7-0.txt
win/curses/cursmain.c

index e36cae2705a46db95f23b69ac0ffb1e0ac879cff..7e86d38ec814fa3480b3377b721583567b2426e5 100644 (file)
@@ -1298,6 +1298,7 @@ curses: make extended command prompt behave more sensibly
 curses: if a menu of objects contains at least one iron ball, and player is
        not already in the midst of entering a count, recognize '0' as a
        group accelerator rather than the start of a count
+curses: obey timed_delay option
 macOS: Xcode project was failing to build if the path to the NetHack source
        tree contained a space; the issue was within some shell script code
        contained within the project
index 69c41c5e14a20604b73dfa93e2f60426275f6139..4f116ea51c86a63b7d714644db35e48d025f2482 100644 (file)
@@ -995,10 +995,14 @@ delay_output()  -- Causes a visible delay of 50ms in the output.
 void
 curses_delay_output(void)
 {
-    /* refreshing the whole display is a waste of time,
-     * but that's why we're here */
-    refresh();
-    napms(50);
+#ifdef TIMED_DELAY
+    if (flags.nap) {
+        /* refreshing the whole display is a waste of time,
+         * but that's why we're here */
+        refresh();
+        napms(50);
+    }
+#endif
 }
 
 /*