"(contents, N zorkmids)" fix (trunk only)
Some code I recently added was misusing count_unpaid() and would traverse some or all of inventory instead of just container's contents when looking for unpaid items. Add mew routine `is_unpaid(obj)' to do what I was intending to do with count_unpaid().
This commit is contained in:
@@ -827,7 +827,7 @@ ring:
|
||||
Strcat(bp, " (alternate weapon; not wielded)");
|
||||
}
|
||||
if(obj->owornmask & W_QUIVER) Strcat(bp, " (in quiver)");
|
||||
if (!iflags.suppress_price && count_unpaid(obj)) {
|
||||
if (!iflags.suppress_price && is_unpaid(obj)) {
|
||||
long quotedprice = unpaid_cost(obj, TRUE);
|
||||
|
||||
Sprintf(eos(bp), " (%s, %ld %s)",
|
||||
|
||||
Reference in New Issue
Block a user