From bbaa40993b4a8d6735ea2033dcb1c6c73694b7a7 Mon Sep 17 00:00:00 2001 From: cohrs Date: Wed, 21 May 2003 15:15:27 +0000 Subject: [PATCH] U472 - untrapping squeaky board with a can of grease If using a permanent inventory window, the charges weren't updated immediately. --- doc/fixes34.2 | 1 + src/trap.c | 1 + 2 files changed, 2 insertions(+) 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); -- 2.40.0