/*
* A function to delete entry
*/
-bool autopick_free_entry(autopick_type *entry)
+void autopick_free_entry(autopick_type *entry)
{
string_free(entry->name);
string_free(entry->insc);
else
strcat(buff, "½¦¤¦¡£");
- if (!(act & DO_DISPLAY))
+ if (act & DO_DISPLAY)
+ {
+ if (act & DONT_AUTOPICK)
+ strcat(buff, "Á´ÂΥޥå×('M')¤Ç'N'¤ò²¡¤·¤¿¤È¤¤Ëɽ¼¨¤¹¤ë¡£");
+ else if (act & DO_AUTODESTROY)
+ strcat(buff, "Á´ÂΥޥå×('M')¤Ç'K'¤ò²¡¤·¤¿¤È¤¤Ëɽ¼¨¤¹¤ë¡£");
+ else
+ strcat(buff, "Á´ÂΥޥå×('M')¤Ç'M'¤ò²¡¤·¤¿¤È¤¤Ëɽ¼¨¤¹¤ë¡£");
+ }
+ else
strcat(buff, "Á´ÂΥޥåפˤÏɽ¼¨¤·¤Ê¤¤");
#else /* JP */
whose_str[whose_n++] = "name is begining with \"";
}
else
- which_str[which_n++] = "has \"";
+ which_str[which_n++] = "have \"";
}
if (act & DONT_AUTOPICK)
}
strcat(buff, ".");
- if (!(act & DO_DISPLAY))
+ if (act & DO_DISPLAY)
+ {
+ if (act & DONT_AUTOPICK)
+ strcat(buff, "And display it when you press 'N' in the full map('N').");
+ else if (act & DO_AUTODESTROY)
+ strcat(buff, "And display it when you press 'K' in the full map('N').");
+ else
+ strcat(buff, "And display it when you press 'M' in the full map('N').");
+ }
+ strcat(buff, " It will be displayed in the full map.");
+ else
strcat(buff, " Not displayed in the full map.");
#endif /* JP */
string_free(lines_list[lines]);
/* free list of pointers */
- C_FREE(lines_list, MAX_LINES, cptr);
+ C_FREE(lines_list, MAX_LINES, cptr *);
}
char buf[1024];
cptr *lines_list;
- int i, j, k, key, old_key, len;
+ int i, j, k, len;
cptr tmp;
int upper = 0, left = 0;
int old_upper = -1, old_left = -1;
int cx = 0, cy = 0;
int old_cy = -1;
+ int key = -1, old_key;
bool edit_mode = FALSE;
int dirty_line = -2;
/* Display information */
if (lines_list[cy][0] == '#')
{
+#ifdef JP
+ prt("¤³¤Î¹Ô¤Ï¥³¥á¥ó¥È¤Ç¤¹¡£", hgt - 3 + 1, 0);
+#else
prt("This line is comment", hgt - 3 + 1, 0);
+#endif
}
else if (lines_list[cy][1] == ':')
{
key = KTRL('g');
break;
case '#':
+ case '{':
key = KTRL('o');
break;
case 'h': case '4':
/* autopick.c */
extern cptr autopick_line_from_entry(autopick_type *entry);
extern bool autopick_new_entry(autopick_type *entry, cptr str);
-extern bool autopick_free_entry(autopick_type *entry);
+extern void autopick_free_entry(autopick_type *entry);
extern int is_autopick(object_type *o_ptr);
extern void autopick_entry_from_object(autopick_type *entry, object_type *o_ptr);
extern void do_cmd_edit_autopick();