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.
This commit is contained in:
Alex Smith
2026-04-30 01:17:01 +01:00
parent a646c3d55e
commit f98428001c
+3 -1
View File
@@ -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);