From f98428001c2b31a6f7bdbde41c8a6ac665b58860 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Thu, 30 Apr 2026 01:17:01 +0100 Subject: [PATCH] Fix a bug in price quote display They weren't displaying in, e.g., the menu to pick up multiple objects at once, which is a particularly important place to display them. --- src/objnam.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/objnam.c b/src/objnam.c index 1246029fd..cd50e0bb5 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -1673,9 +1673,11 @@ doname_base( nochrg ? "contents" : "for sale", pricebuf); } else if (nochrg > 0) { Concat(bp, 0, " (no charge)"); + } else { + append_price_quote(bp, &bp_eos, obj->otyp); } - if (price) + if (price > 0L) record_price_quote(obj->otyp, price / obj->quan, TRUE); } else if (iflags.pricequotes && !objects[obj->otyp].oc_name_known) { append_price_quote(bp, &bp_eos, obj->otyp);