From: habu Date: Tue, 5 Jan 2010 07:51:40 +0000 (+0000) Subject: 重量0のアイテムをサブウィンドウで表示した時に重量の表示が無くならないように修正。 X-Git-Tag: v2.1.2~274 X-Git-Url: http://git.osdn.net/view?p=hengband%2Fhengband.git;a=commitdiff_plain;h=7e7c0110e7e39031a20c25146cd8a24b568c08b5 重量0のアイテムをサブウィンドウで表示した時に重量の表示が無くならないように修正。 --- diff --git a/src/object1.c b/src/object1.c index e35dcba8d..ce3ab3b28 100644 --- a/src/object1.c +++ b/src/object1.c @@ -4424,7 +4424,7 @@ void display_inven(void) Term_erase(3+n, i, 255); /* Display the weight if needed */ - if (show_weights && o_ptr->weight) + if (show_weights) { int wgt = o_ptr->weight * o_ptr->number; #ifdef JP @@ -4516,7 +4516,7 @@ void display_equip(void) Term_erase(3+n, i - INVEN_RARM, 255); /* Display the weight (if needed) */ - if (show_weights && o_ptr->weight) + if (show_weights) { int wgt = o_ptr->weight * o_ptr->number; #ifdef JP