more fixes for revised 'sortloot'

After some permutation of commands which displayed items, the 'd'
command presented a prompt with the list of letters scrambled (in
loot order or pack order rather than invlet order), so explicitly
sort when getobj operates.  Done for ggetobj too.

For menustyle:Traditional, ',' followed by 'm' presented a pickup
list in pile order even when sortloot was 'l' or 'f'.  That was an
unintentional change during the 'revamp'.
This commit is contained in:
PatR
2016-03-22 01:19:27 -07:00
parent 98b5f581bb
commit e8e8c14b34
4 changed files with 39 additions and 21 deletions

View File

@@ -823,7 +823,7 @@ boolean FDECL((*allow), (OBJ_P)); /* allow function */
return 1;
}
if (sorted) {
if (sorted || flags.sortloot != 'n') {
sortloot(&olist,
(((flags.sortloot == 'f'
|| (flags.sortloot == 'l' && !(qflags & USE_INVLET)))