U472 - untrapping squeaky board with a can of grease

If using a permanent inventory window, the charges weren't updated immediately.
This commit is contained in:
cohrs
2003-05-21 15:15:27 +00:00
parent 902b4e67ef
commit bbaa40993b
2 changed files with 2 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ killer on tombstone had no prefix for starvation/exhaustion case
ensure proper message ordering for boulder trap messages
clean up data set by join_map that is overlaid by MAPs on special levels
clarify disclose option default in opthelp, and support "all" as old help said
add more calls to update_inventory as the inventory changes
Platform- and/or Interface-Specific Fixes

View File

@@ -3152,6 +3152,7 @@ struct trap *ttmp;
if (obj->otyp == CAN_OF_GREASE) {
check_unpaid(obj);
obj->spe--;
update_inventory();
} else {
useup(obj); /* oil */
makeknown(POT_OIL);