From 9ea4a3a3293eb3b597ad746af13735d4c7f8f513 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 21 Oct 2023 16:13:18 +0300 Subject: [PATCH] Don't set getdir_click unless we've requested it This allowed eg. throwing the iron ball anywhere on the map, by first throwing something else, using the "simulated mouse click" to select any map location, and then throwing the iron ball and also using the mouse click feature to select any location. Currently the only function that actually uses the simulated mouse click feature is #therecmdmenu --- src/cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmd.c b/src/cmd.c index 2e4a8cbb2..7c4cd4d7b 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -5344,7 +5344,8 @@ getdir(const char *s) break; } } - iflags.getdir_click = mod; + if (iflags.getdir_click) + iflags.getdir_click = mod; return (pos >= 0); } else if (!(is_mov = movecmd(dirsym, MV_ANY)) && !u.dz) { boolean did_help = FALSE, help_requested;