]> granicus.if.org Git - nethack/commitdiff
U472 - untrapping squeaky board with a can of grease
authorcohrs <cohrs>
Wed, 21 May 2003 15:15:27 +0000 (15:15 +0000)
committercohrs <cohrs>
Wed, 21 May 2003 15:15:27 +0000 (15:15 +0000)
If using a permanent inventory window, the charges weren't updated immediately.

doc/fixes34.2
src/trap.c

index 6118f5a0bb0edaf547cdc218be3aeb24eb0b9b05..eabb25d5cb4e8fa1c8f4eb472c50309c9c6dab24 100644 (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
index e78af19ae14efe2057c7c6723f05b18005e224b7..b04d9da87ef0c914cbac9d6ff93d2a2511134350 100644 (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);