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:
+3
-1
@@ -1673,9 +1673,11 @@ doname_base(
|
|||||||
nochrg ? "contents" : "for sale", pricebuf);
|
nochrg ? "contents" : "for sale", pricebuf);
|
||||||
} else if (nochrg > 0) {
|
} else if (nochrg > 0) {
|
||||||
Concat(bp, 0, " (no charge)");
|
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);
|
record_price_quote(obj->otyp, price / obj->quan, TRUE);
|
||||||
} else if (iflags.pricequotes && !objects[obj->otyp].oc_name_known) {
|
} else if (iflags.pricequotes && !objects[obj->otyp].oc_name_known) {
|
||||||
append_price_quote(bp, &bp_eos, obj->otyp);
|
append_price_quote(bp, &bp_eos, obj->otyp);
|
||||||
|
|||||||
Reference in New Issue
Block a user