object_type *o_ptr;
char o_name[MAX_NLEN];
char tmp_val[80];
- int out_index[23];
+ COMMAND_CODE out_index[23];
byte out_color[23];
char out_desc[23][MAX_NLEN];
COMMAND_CODE target_item_label = 0;
object_type *o_ptr;
char tmp_val[80];
char o_name[MAX_NLEN];
- int out_index[23];
+ COMMAND_CODE out_index[23];
byte out_color[23];
char out_desc[23][MAX_NLEN];
COMMAND_CODE target_item_label = 0;
/* Extract "query" setting */
ver = isupper(which);
- which = tolower(which);
+ which = (char)tolower(which);
/* Convert letter to inventory index */
if (!command_wrk)
* mode & 0x02 -- Marked items only
* mode & 0x04 -- Stop after first
*/
-int scan_floor(int *items, int y, int x, int mode)
+int scan_floor(int *items, POSITION y, POSITION x, int mode)
{
int this_o_idx, next_o_idx;
* @return 選択したアイテムの添え字
* @details
*/
-COMMAND_CODE show_floor(int target_item, int y, int x, int *min_width)
+COMMAND_CODE show_floor(int target_item, POSITION y, POSITION x, TERM_POSITION *min_width)
{
- int i, j, k, l;
+ COMMAND_CODE i, m;
+ int j, k, l;
int col, len;
object_type *o_ptr;
char tmp_val[80];
- int out_index[23];
+ COMMAND_CODE out_index[23];
byte out_color[23];
char out_desc[23][MAX_NLEN];
COMMAND_CODE target_item_label = 0;
for (j = 0; j < k; j++)
{
/* Get the index */
- i = floor_list[out_index[j]];
+ m = floor_list[out_index[j]];
/* Get the item */
- o_ptr = &o_list[i];
+ o_ptr = &o_list[m];
/* Clear the line */
prt("", j + 1, col ? col - 2 : col);
if (j == (target_item-1))
{
strcpy(tmp_val, _("》", "> "));
- target_item_label = i;
+ target_item_label = m;
}
else strcpy(tmp_val, " ");
}
char out_val[160];
int floor_num, floor_list[23], floor_top = 0;
- int min_width = 0;
+ TERM_POSITION min_width = 0;
extern bool select_the_force;