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:
@@ -164,7 +164,7 @@ is_pure(boolean talk)
|
||||
} else if (u.ualign.record < MIN_QUEST_ALIGN) {
|
||||
You("are currently %d and require %d.", u.ualign.record,
|
||||
MIN_QUEST_ALIGN);
|
||||
if (yn_function("adjust?", (char *) 0, 'y') == 'y')
|
||||
if (yn_function("adjust?", (char *) 0, 'y', TRUE) == 'y')
|
||||
u.ualign.record = MIN_QUEST_ALIGN;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user