From 2c277e15d1e186becd25aff535bb2809523e9e1e Mon Sep 17 00:00:00 2001 From: cohrs Date: Tue, 2 Jul 2002 04:14:59 +0000 Subject: [PATCH] R975 - message for charging for items lost in a cursed magic bag The loss message was not always printed due to testing the wrong variable before printing the message. --- doc/fixes34.1 | 1 + src/pickup.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 885e385b6..adac69506 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -134,6 +134,7 @@ allow #untrapping of chests that are co-located with floor traps and hero unmap "I" symbols when searching while blind and levitating monsters that are frozen or sleeping cannot be grateful for untrapping grammar of blessed-detection eating warning messages when eating 1 of N objects +message for charging for items lost in a cursed magic bag wasn't always shown Platform- and/or Interface-Specific Fixes diff --git a/src/pickup.c b/src/pickup.c index 0dfa6fa7f..5fdf57ee3 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -1998,7 +1998,7 @@ register int held; } } - if (cnt && loss) + if (lcnt && loss) You("owe %ld %s for lost item%s.", loss, currency(loss), lcnt > 1 ? "s" : ""); -- 2.40.0