Move the map opened detect out to the class.

master
Zed A. Shaw 4 days ago
parent c4ed26184b
commit 78ba83e916
  1. 1
      autowalker.cpp
  2. 1
      autowalker.hpp

@ -266,7 +266,6 @@ void Autowalker::autowalk() {
} }
int move_attempts = 0; int move_attempts = 0;
bool map_opened_once = false;
auto start = ai::load_state("Host::initial_state"); auto start = ai::load_state("Host::initial_state");
auto goal = ai::load_state("Host::final_state"); auto goal = ai::load_state("Host::final_state");

@ -9,6 +9,7 @@ struct Autowalker {
int enemy_count = 0; int enemy_count = 0;
int item_count = 0; int item_count = 0;
int device_count = 0; int device_count = 0;
bool map_opened_once = false;
gui::FSM& fsm; gui::FSM& fsm;
Autowalker(gui::FSM& fsm) Autowalker(gui::FSM& fsm)

Loading…
Cancel
Save