/*
* Process line for auto picker/destroyer.
*/
-errr process_autopick_file_command(char *buf)
+void process_autopick_file_command(char *buf)
{
autopick_type an_entry, *entry = &an_entry;
int i;
}
buf[i] = 0;
- if (!autopick_new_entry(entry, buf, FALSE)) return 0;
+ if (!autopick_new_entry(entry, buf, FALSE)) return;
+
for (i = 0; i < max_autopick; i++)
{
if (!strcmp(entry->name, autopick_list[i].name)
&& entry->bonus == autopick_list[i].bonus)
{
autopick_free_entry(entry);
- return 0;
+ return;
}
}
add_autopick_list(entry);
- return 0;
+ return;
}
extern autopick_type *autopick_list;
extern void autopick_load_pref(player_type *player_ptr, bool disp_mes);
-extern errr process_autopick_file_command(char *buf);
+extern void process_autopick_file_command(char *buf);
extern concptr autopick_line_from_entry(autopick_type *entry);
extern int is_autopick(player_type *player_ptr, object_type *o_ptr);
extern void autopick_alter_item(player_type *player_ptr, INVENTORY_IDX item, bool destroy);