fix B18007 - travel cmd forces extra keystroke
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.
This commit is contained in:
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user