restore getdir simulated mouse click

When getdir is given '_' as a direction, it calls getpos to get a
map location rather than just a direction.  Have getdir()'s caller
explicitly enable that so using '_' for other than #therecmdmenu
doesn't produce a delta that's farther than one step away.
This commit is contained in:
PatR
2022-07-10 06:55:16 -07:00
parent 314715038d
commit 6ac5525239
2 changed files with 30 additions and 5 deletions
+1
View File
@@ -213,6 +213,7 @@ struct instance_flags {
#define TER_MON 0x08
#define TER_DETECT 0x10 /* detect_foo magic rather than #terrain */
boolean getloc_travelmode;
int getdir_ok2click; /* for #therecmdmenu */
int getloc_click; /* 0 or CLICK_1 (left) or CLICK_2 (right) */
int getloc_filter; /* GFILTER_foo */
boolean getloc_usemenu;