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();
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();
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
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
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();
/* Redraw the home */
if (item_pos >= 0)
{
- store_top = (item_pos / 12) * 12;
+ store_top = (item_pos / store_bottom) * store_bottom;
display_inventory();
}
}