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

@@ -231,6 +231,7 @@ const struct instance_globals g_init = {
WIN_ERR, /* en_win */
FALSE, /* en_via_menu */
UNDEFINED_VALUE, /* last_command_count */
NULL, /* ext_tlist */
/* dbridge.c */
UNDEFINED_VALUES, /* occupants */