]> granicus.if.org Git - nethack/commitdiff
Fix ESC so it cancels the movement prefix commands
authorPasi Kallinen <paxed@alt.org>
Mon, 24 Jan 2022 17:48:40 +0000 (19:48 +0200)
committerPasi Kallinen <paxed@alt.org>
Mon, 24 Jan 2022 17:48:43 +0000 (19:48 +0200)
My changes to turn the movement and prefix commands into
extended commands broke this.

src/cmd.c

index 4eef6a2f7bace92773165b6aa297e357488aa4eb..74d1180f125b6420dd6c4bb52789bf38ac149448 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -3784,6 +3784,11 @@ got_prefix_input:
     if (*cmd == g.Cmd.spkeys[NHKF_ESC]) {
         g.context.move = FALSE;
         iflags.menu_requested = FALSE;
+        g.context.run = 0;
+        g.context.nopick = g.context.forcefight = FALSE;
+        g.context.mv = FALSE;
+        g.multi = 0;
+        g.domove_attempting = 0;
         return;
     }