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:
@@ -583,12 +583,6 @@ int NetHackQtExtCmdRequestor::get()
|
||||
exec();
|
||||
|
||||
int ret = result() - 1;
|
||||
if (!::g.in_doagain) {
|
||||
if (ret >= 0)
|
||||
savech_extcmd(::extcmdlist[ret].ef_txt, FALSE);
|
||||
else
|
||||
savech(0);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user