X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fautopick.c;h=8a980eb9072e28c3df870fd47c6343898876a9ba;hb=b2c0b715ffb360c4a84822afd4e47c4ca4d466ca;hp=6b21e8bd1bb25a90f9c40eb0d5e47d4ecb0b7ed9;hpb=204838009a6b997e71091a08ecd7515708da6d0d;p=hengband%2Fhengband.git diff --git a/src/autopick.c b/src/autopick.c index 6b21e8bd1..8a980eb90 100644 --- a/src/autopick.c +++ b/src/autopick.c @@ -14,8 +14,12 @@ #include "angband.h" #include "store.h" #include "player-status.h" +#include "player-move.h" +#include "object-flavor.h" #include "object-hook.h" +#include "files.h" + #define MAX_LINELEN 1024 /* @@ -1709,9 +1713,7 @@ void autopick_pickup_items(grid_type *g_ptr) { int idx; object_type *o_ptr = ¤t_floor_ptr->o_list[this_o_idx]; - - /* Acquire next object */ - next_o_idx = o_ptr->next_o_idx; + next_o_idx = o_ptr->next_o_idx; idx = is_autopick(o_ptr); @@ -6006,7 +6008,7 @@ void do_cmd_edit_autopick(void) old_autosave_turn = current_world_ptr->game_turn; } - /* HACK -- Reset start_time to stop counting playtime while edit */ + /* HACK -- Reset start_time to stop counting current_world_ptr->play_time while edit */ update_playtime(); /* Free old entries */ @@ -6132,7 +6134,7 @@ void do_cmd_edit_autopick(void) /* Reload autopick pref */ process_autopick_file(buf); - /* HACK -- reset start_time so that playtime is not increase while edit */ + /* HACK -- reset start_time so that current_world_ptr->play_time is not increase while edit */ start_time = (u32b)time(NULL); /* Save cursor location */