disclosure of geno'd and/or extinct species
If there is at least one genocided or extinct type of monster, final disclosure asks if you want to see the list. It was using "ynaq" for the choice of answer, where 'a' is used to prompt for sort order rather than "all". Change it to only include the 'a' choice if there are more than 1 of either category or 1 each of both categories (since they're listed interspersed with each other, sorting is relevant for the one-of-each situation).
This commit is contained in:
@@ -3046,12 +3046,14 @@ list_genocided(char defquery, boolean ask)
|
||||
ngone = num_gone(mvflags, mindx);
|
||||
|
||||
/* genocided or extinct species list */
|
||||
if (ngenocided != 0 || nextinct != 0) {
|
||||
if (ngone > 0) {
|
||||
Sprintf(buf, "Do you want a list of %sspecies%s%s?",
|
||||
(nextinct && !ngenocided) ? "extinct " : "",
|
||||
(ngenocided) ? " genocided" : "",
|
||||
(nextinct && ngenocided) ? " and extinct" : "");
|
||||
c = ask ? yn_function(buf, ynaqchars, defquery, TRUE) : defquery;
|
||||
c = ask ? yn_function(buf, (ngone > 1) ? "ynaq" : "ynq\033a",
|
||||
defquery, TRUE)
|
||||
: defquery;
|
||||
if (c == 'q')
|
||||
done_stopprint++;
|
||||
if (c == 'y' || c == 'a') {
|
||||
|
||||
Reference in New Issue
Block a user