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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user