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
+1
View File
@@ -70,6 +70,7 @@ killer on tombstone had no prefix for starvation/exhaustion case
ensure proper message ordering for boulder trap messages ensure proper message ordering for boulder trap messages
clean up data set by join_map that is overlaid by MAPs on special levels 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 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 Platform- and/or Interface-Specific Fixes
+1
View File
@@ -3152,6 +3152,7 @@ struct trap *ttmp;
if (obj->otyp == CAN_OF_GREASE) { if (obj->otyp == CAN_OF_GREASE) {
check_unpaid(obj); check_unpaid(obj);
obj->spe--; obj->spe--;
update_inventory();
} else { } else {
useup(obj); /* oil */ useup(obj); /* oil */
makeknown(POT_OIL); makeknown(POT_OIL);