fix to #adjust for '!fixinv' config
If you have 'fixinv' set to Off and and an inventory of three items, they'll always be a and b and c. #adjust had you pick 'from' slot among [abc] and the prompt for 'to' was supposed to show the letter you picked plus 'd' for 'move to last'. But it was only showing the 'from' letter itself as likely candidate, omitting the last+1 choice. (Anything after the last letter in use could be picked and yield the right result, only the list of likely candidate slots in the prompt wrong.) Fixed more by trial and error than by understanding why the old code didn't do what was intended.
This commit is contained in:
@@ -4891,7 +4891,7 @@ doorganize_core(struct obj *obj)
|
||||
lets[sizeof lets - 1] = '\0';
|
||||
/* for floating inv letters, truncate list after the first open slot */
|
||||
if (!flags.invlet_constant && (ix = inv_cnt(FALSE)) < 52)
|
||||
lets[ix + (splitting ? 0 : 1)] = '\0';
|
||||
lets[ix + (splitting ? 1 : 2)] = '\0';
|
||||
|
||||
/* blank out all the letters currently in use in the inventory
|
||||
except those that will be merged with the selected object */
|
||||
|
||||
Reference in New Issue
Block a user