about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tracker_state.cpp13
-rw-r--r--src/version.h2
2 files changed, 6 insertions, 9 deletions
diff --git a/src/tracker_state.cpp b/src/tracker_state.cpp index eee43e4..d372786 100644 --- a/src/tracker_state.cpp +++ b/src/tracker_state.cpp
@@ -360,6 +360,10 @@ class StateCalculator {
360 // evaluated. 360 // evaluated.
361 for (const Door& door : GD_GetDoors()) { 361 for (const Door& door : GD_GetDoors()) {
362 int discard = IsDoorReachable(door.id); 362 int discard = IsDoorReachable(door.id);
363
364 door_report_[door.id] = {};
365 discard = AreRequirementsSatisfied(
366 GetState().requirements.GetDoor(door.id), &door_report_[door.id]);
363 } 367 }
364 } 368 }
365 369
@@ -522,14 +526,7 @@ class StateCalculator {
522 } 526 }
523 527
524 Decision IsDoorReachable_Helper(int door_id) { 528 Decision IsDoorReachable_Helper(int door_id) {
525 if (door_report_.count(door_id)) { 529 return AreRequirementsSatisfied(GetState().requirements.GetDoor(door_id));
526 door_report_[door_id].clear();
527 } else {
528 door_report_[door_id] = {};
529 }
530
531 return AreRequirementsSatisfied(GetState().requirements.GetDoor(door_id),
532 &door_report_[door_id]);
533 } 530 }
534 531
535 Decision IsDoorReachable(int door_id) { 532 Decision IsDoorReachable(int door_id) {
diff --git a/src/version.h b/src/version.h index f734f02..3ef9898 100644 --- a/src/version.h +++ b/src/version.h
@@ -36,6 +36,6 @@ struct Version {
36 } 36 }
37}; 37};
38 38
39constexpr const Version kTrackerVersion = Version(0, 12, 0); 39constexpr const Version kTrackerVersion = Version(0, 12, 1);
40 40
41#endif /* end of include guard: VERSION_H_C757E53C */ \ No newline at end of file 41#endif /* end of include guard: VERSION_H_C757E53C */ \ No newline at end of file