From: cohrs Date: Wed, 21 May 2003 15:15:27 +0000 (+0000) Subject: U472 - untrapping squeaky board with a can of grease X-Git-Tag: MOVE2GIT~1969 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbaa40993b4a8d6735ea2033dcb1c6c73694b7a7;p=nethack U472 - untrapping squeaky board with a can of grease If using a permanent inventory window, the charges weren't updated immediately. --- diff --git a/doc/fixes34.2 b/doc/fixes34.2 index 6118f5a0b..eabb25d5c 100644 --- a/doc/fixes34.2 +++ b/doc/fixes34.2 @@ -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 diff --git a/src/trap.c b/src/trap.c index e78af19ae..b04d9da87 100644 --- a/src/trap.c +++ b/src/trap.c @@ -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);