Fix movecmd always returning a direction

My recent commit broke the 'm' (menu request) -prefix, because
a thinko in movecmd made it always return a direction.
This commit is contained in:
Pasi Kallinen
2021-07-08 07:49:28 +03:00
parent 2f1b3a34ad
commit 5abf948116

View File

@@ -3707,7 +3707,7 @@ movecmd(char sym, int mode)
char *mvkeys = (mode == MV_WALK) ? g.Cmd.move :
((mode == MV_RUN) ? g.Cmd.run : g.Cmd.rush);
for (d = 0; d < N_DIRS; d++) {
for (d = N_DIRS; d > DIR_ERR; d--) {
if (mode == MV_ANY) {
if (sym == g.Cmd.move[d]
|| sym == g.Cmd.rush[d]