From 7a03686f2ecc5af48c430f7902249425749d491b Mon Sep 17 00:00:00 2001 From: iks Date: Sat, 21 Mar 2009 06:29:44 +0000 Subject: [PATCH] =?utf8?q?=E5=BA=97=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B293?= =?utf8?q?7=E3=81=AE=E5=A4=89=E6=9B=B4=E3=81=A7=E3=80=81=E4=B8=80=E9=83=A8?= =?utf8?q?=E3=81=AB=E3=80=8C12=E3=80=8D=E3=81=AE=E6=95=B0=E5=AD=97?= =?utf8?q?=E3=81=8C=E6=AE=8B=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=81=BE?= =?utf8?q?=E3=81=BE=E3=81=A7=E8=B5=B7=E3=81=8D=E3=82=8B=E4=B8=8D=E5=85=B7?= =?utf8?q?=E5=90=88=E3=82=92=E4=BF=AE=E6=AD=A3=E3=80=82=20-'x'=E3=81=A7?= =?utf8?q?=E3=81=AE=E3=82=A2=E3=82=A4=E3=83=86=E3=83=A0=E8=A9=B3=E7=B4=B0?= =?utf8?q?=E3=81=AE=E8=AA=BF=E6=9F=BB=E3=81=A7l=E3=81=BE=E3=81=A7=E3=81=97?= =?utf8?q?=E3=81=8B=E9=81=B8=E3=81=B9=E3=81=AA=E3=81=84=20-3=E3=83=9A?= =?utf8?q?=E3=83=BC=E3=82=B8=E4=BB=A5=E9=99=8D=E3=80=81=E3=81=9D=E3=81=AE?= =?utf8?q?=E3=83=9A=E3=83=BC=E3=82=B8=E5=86=85=E3=81=8B=E3=82=89=E3=82=A2?= =?utf8?q?=E3=82=A4=E3=83=86=E3=83=A0=E3=82=92=E3=81=AA=E3=81=8F=E3=81=97?= =?utf8?q?=E3=81=9F=E3=81=A8=E3=81=8D=E3=81=AB=E9=A3=9B=E3=81=B6=E4=BD=8D?= =?utf8?q?=E7=BD=AE=E3=81=8C=E3=81=8A=E3=81=8B=E3=81=97=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/store.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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(); } } -- 2.11.0