]> granicus.if.org Git - nethack/commitdiff
fix B18007 - travel cmd forces extra keystroke
authornethack.rankin <nethack.rankin>
Fri, 7 Feb 2003 10:04:27 +0000 (10:04 +0000)
committernethack.rankin <nethack.rankin>
Fri, 7 Feb 2003 10:04:27 +0000 (10:04 +0000)
     I don't know whether there were any other odd situations besides moving
onto known traps being caused by the out of date value in flags.run; several
places do check to see whether it's 8.

doc/fixes34.1
src/cmd.c

index 8ba3231aebf68fe8fdf34840cd4d58cb05671af1..2ff6f30ae33de6694b43837eab46aafa0f92e0af 100644 (file)
@@ -370,6 +370,8 @@ Asmodeus fails an is_armed() check, so code in m_initweap() to give him wands
 #rub would wield the target tool even when already being worn as eyewear
 monks lose their to-hit bonus for bare-handed attacking if wearing a shield
 fix case on leading character in "Crunched in the head..." in ball.c
+using travel mode to move next to a known trap and then trying to step onto
+       that trap required an extra step; the first one ended up as a no-op
 
 
 Platform- and/or Interface-Specific Fixes
index 7a7125dece33eebd6626c91a51aead4810f54af9..e77a56988da49a90818075355cba68b9acfa07a6 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)cmd.c      3.4     2003/01/08      */
+/*     SCCS Id: @(#)cmd.c      3.4     2003/02/06      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -1849,6 +1849,7 @@ register char *cmd;
                    }
                    /*FALLTHRU*/
         default:   if (movecmd(*cmd)) {        /* ordinary movement */
+                       flags.run = 0;  /* only matters here if it was 8 */
                        do_walk = TRUE;
                    } else if (movecmd(iflags.num_pad ?
                                       unmeta(*cmd) : lowc(*cmd))) {