using prefixes via their extended command names

Trying to use #reqmenu/#rush/#run/#fight prefixes by their extended
command names didn't work because rhack()'s post-processing was stuck
dealing with the entry for the '#' key after using doextcmd() to run
any command.  Use a static variable (actually a global one since I put
it into struct g) to notify rhack() of the command that ultimately got
executed.
This commit is contained in:
PatR
2022-02-07 16:53:56 -08:00
parent 50d8463b71
commit a0100dd300
3 changed files with 12 additions and 0 deletions

View File

@@ -728,6 +728,7 @@ struct instance_globals {
winid en_win;
boolean en_via_menu;
long last_command_count;
struct ext_func_tab *ext_tlist; /* info for rhack() from doextcmd() */
/* dbridge.c */
struct entity occupants[ENTITIES];