From 93d7d79fca32d901de94ae35a8f6ff72bfa01010 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 20 Jan 2023 14:35:30 +0200 Subject: [PATCH] Fix mouse menu movement When using mouse to move to a location next to the hero, the test_move result was reversed, causing the click to fall in to the travel case instead of normal movement. --- src/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd.c b/src/cmd.c index 4d1fa6c81..37a99370b 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -6014,7 +6014,7 @@ there_cmd_menu(coordxy x, coordxy y, int mod) if (!K) { /* no menu options, try to move */ - if (next2u(x, y) && !test_move(u.ux, u.uy, dx, dy, TEST_MOVE)) { + if (next2u(x, y) && test_move(u.ux, u.uy, dx, dy, TEST_MOVE)) { int dir = xytod(dx, dy); cmdq_add_ec(CQ_CANNED, move_funcs[dir][MV_WALK]);