I managed to execute #herecmd by mistake and when I typed ESC to get
out of its menu, monsters took their next turn. #therecmd behaved
similarly.
{
char ch = here_cmd_menu(TRUE);
- return ch ? ECMD_TIME : ECMD_OK;
+ return (ch && ch != '\033') ? ECMD_TIME : ECMD_OK;
}
/* #therecmdmenu command, a way to test there_cmd_menu without mouse */
else
ch = here_cmd_menu(TRUE);
- return ch ? ECMD_TIME : ECMD_OK;
+ return (ch && ch != '\033') ? ECMD_TIME : ECMD_OK;
}
static void