bug: (inventory)

Bug reports and discussion about bugs.
Post Reply
User avatar
repeat
Posts: 8
Joined: Thu Oct 03, 2013 8:49 pm

bug: (inventory)

Post by repeat »

When i read Scroll and then stop process (press ESC) this Scroll stay in inventory but i can't drop it and in inventory it looks like "no more Scroll..."
https://www.youtube.com/watch?v=09Pd_qb7HRc

Then after purchase new a same Scroll I not have 2 Scrolls. New Scroll stay instead of "no more Scroll..."

*FIX in game* throw this item and then get.
User avatar
repeat
Posts: 8
Joined: Thu Oct 03, 2013 8:49 pm

Re: bug: (inventory)

Post by repeat »

Scroll mark as "no more" after i started read but before than i use it. Scroll removed from inventory after used. I think need mark Scroll as "no more" too after used it.
User avatar
repeat
Posts: 8
Joined: Thu Oct 03, 2013 8:49 pm

Re: bug: (inventory)

Post by repeat »

server/cmd6.c
line 2900

Code: Select all

	/* Destroy a scroll in the pack */
	if (item >= 0) {
		inven_item_increase(Ind, item, -1);
server/spell2.c
line 3658

Code: Select all

	/* Did we use up an item? */
	if (p_ptr->using_up_item >= 0) {
//		inven_item_describe(Ind, p_ptr->using_up_item); /* maybe not when IDing */
		inven_item_optimize(Ind, p_ptr->using_up_item);
		p_ptr->using_up_item = -1;
	}
If i right understand it in cmd6.c item destroyed but when we press ESC (cancel ID) item not optimized on spell2.c but marked as destroyed
C. Blue
Developer
Posts: 394
Joined: Sun Dec 13, 2009 6:28 pm

Re: bug: (inventory)

Post by C. Blue »

It's a feature :-p
Post Reply