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:
6
src/do.c
6
src/do.c
@@ -627,13 +627,13 @@ static int
|
||||
drop(struct obj *obj)
|
||||
{
|
||||
if (!obj)
|
||||
return ECMD_OK;
|
||||
return ECMD_FAIL;
|
||||
if (!canletgo(obj, "drop"))
|
||||
return ECMD_OK;
|
||||
return ECMD_FAIL;
|
||||
if (obj == uwep) {
|
||||
if (welded(uwep)) {
|
||||
weldmsg(obj);
|
||||
return ECMD_OK;
|
||||
return ECMD_FAIL;
|
||||
}
|
||||
setuwep((struct obj *) 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user