Command repeating by using cmd queues
This replaces the old pushq/saveq arrays (which were used to save the keys pressed by the user for repeating a previous command) with a new command queue. This means there's no hard-coded limit to the saved keys, and it can repeat extended commands which are not bound to any key.
This commit is contained in:
@@ -715,7 +715,7 @@ getspell(int* spell_no)
|
||||
for (;;) {
|
||||
Snprintf(qbuf, sizeof(qbuf), "Cast which spell? [%s *?]",
|
||||
lets);
|
||||
ilet = yn_function(qbuf, (char *) 0, '\0');
|
||||
ilet = yn_function(qbuf, (char *) 0, '\0', TRUE);
|
||||
if (ilet == '*' || ilet == '?')
|
||||
break; /* use menu mode */
|
||||
if (index(quitchars, ilet))
|
||||
|
||||
Reference in New Issue
Block a user