Stat zone no arg defaults to current zone and fixed shop listing color formatting. --Rumble

This commit is contained in:
Rumble
2007-07-02 13:52:06 +00:00
parent 52194dacdd
commit 9b3bc051f9
4 changed files with 6 additions and 4 deletions

View File

@@ -817,7 +817,7 @@ char *list_object(struct obj_data *obj, int cnt, int aindex, int shop_nr, struct
}
CAP(itemname);
snprintf(result, sizeof(result), " %2d) %9s %-*s %6d\r\n", aindex, quantity, 48 - count_color_chars(itemname), itemname, buy_price(obj, shop_nr, keeper, ch));
snprintf(result, sizeof(result), " %2d) %9s %-*s %6d\r\n", aindex, quantity, count_color_chars(itemname)+48, itemname, buy_price(obj, shop_nr, keeper, ch));
return (result);
}