#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
/*
{
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);
tb->dirty_line = -1;
tb->filename_mode = PT_DEFAULT;
- if (turn < old_autosave_turn)
+ if (current_world_ptr->game_turn < old_autosave_turn)
{
- while (old_autosave_turn > turn) old_autosave_turn -= TURNS_PER_TICK * TOWN_DAWN;
+ while (old_autosave_turn > current_world_ptr->game_turn) old_autosave_turn -= TURNS_PER_TICK * TOWN_DAWN;
}
/* Autosave */
- if (turn > old_autosave_turn + 100L)
+ if (current_world_ptr->game_turn > old_autosave_turn + 100L)
{
do_cmd_save_game(TRUE);
- old_autosave_turn = turn;
+ 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 */
/* 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 */