Item destruction and recharging fix
Recharge only handles items carried by hero. I don't think it really matters that we just skip it, but leave a FIXME in the code if anyone has enough energy to improve this later. Fallout from the unified item destruction.
This commit is contained in:
@@ -5698,7 +5698,9 @@ maybe_destroy_item(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (chargeit) {
|
if (chargeit) {
|
||||||
recharge(obj, 0);
|
/* FIXME: recharge only handles items in hero's inventory */
|
||||||
|
if (u_carry)
|
||||||
|
recharge(obj, 0);
|
||||||
} else if (!skip) {
|
} else if (!skip) {
|
||||||
char osym = obj->oclass; /* for checking glob of slime after it's
|
char osym = obj->oclass; /* for checking glob of slime after it's
|
||||||
destroyed */
|
destroyed */
|
||||||
|
|||||||
Reference in New Issue
Block a user