From: iks Date: Sat, 21 Mar 2009 06:29:44 +0000 (+0000) Subject: 店に関する2937の変更で、一部に「12」の数字が残っていたままで起きる不具合を修正。 X-Git-Tag: v2.1.2~301 X-Git-Url: http://git.osdn.net/view?p=hengband%2Fhengband.git;a=commitdiff_plain;h=7a03686f2ecc5af48c430f7902249425749d491b 店に関する2937の変更で、一部に「12」の数字が残っていたままで起きる不具合を修正。 -'x'でのアイテム詳細の調査でlまでしか選べない -3ページ以降、そのページ内からアイテムをなくしたときに飛ぶ位置がおかしい --- diff --git a/src/store.c b/src/store.c index 23a288758..13ce23386 100644 --- a/src/store.c +++ b/src/store.c @@ -3660,7 +3660,7 @@ msg_format("%s else if (st_ptr->stock_num != i) { /* Pick the correct screen */ - if (store_top >= st_ptr->stock_num) store_top -= 12; + if (store_top >= st_ptr->stock_num) store_top -= store_bottom; /* Redraw everything */ display_inventory(); @@ -3739,7 +3739,7 @@ msg_format("%s if (st_ptr->stock_num == 0) store_top = 0; /* Nothing left on that screen */ - else if (store_top >= st_ptr->stock_num) store_top -= 12; + else if (store_top >= st_ptr->stock_num) store_top -= store_bottom; /* Redraw everything */ display_inventory(); @@ -4199,7 +4199,7 @@ static void store_examine(void) i = (st_ptr->stock_num - store_top); /* And then restrict it to the current page */ - if (i > 12) i = 12; + if (i > store_bottom) i = store_bottom; /* Prompt */ #ifdef JP @@ -4282,7 +4282,7 @@ static void museum_remove_object(void) i = st_ptr->stock_num - store_top; /* And then restrict it to the current page */ - if (i > 12) i = 12; + if (i > store_bottom) i = store_bottom; /* Prompt */ #ifdef JP @@ -4330,7 +4330,7 @@ static void museum_remove_object(void) if (st_ptr->stock_num == 0) store_top = 0; /* Nothing left on that screen */ - else if (store_top >= st_ptr->stock_num) store_top -= 12; + else if (store_top >= st_ptr->stock_num) store_top -= store_bottom; /* Redraw everything */ display_inventory(); @@ -5070,7 +5070,7 @@ void do_cmd_store(void) /* Redraw the home */ if (item_pos >= 0) { - store_top = (item_pos / 12) * 12; + store_top = (item_pos / store_bottom) * store_bottom; display_inventory(); } }