Skip to content

Commit 594c0b5

Browse files
committed
Update print_all_used_switches
1 parent 1a41b3f commit 594c0b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wwlib/stage_searcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def each_stage_and_room(self, exclude_stages=False, exclude_rooms=False, stage_n
7575
yield(dzs, stage_arc_path, stage_name)
7676
for room_arc_path in all_room_arc_paths:
7777
dzr = self.get_arc(room_arc_path).get_file("room.dzr", DZx)
78-
match = re.search(r"^files/res/Stage/([^/]+)/", stage_arc_path, re.IGNORECASE)
78+
match = re.search(r"^files/res/Stage/([^/]+)/", room_arc_path, re.IGNORECASE)
7979
assert match
8080
stage_name = match.group(1)
8181
if dzr is None:
@@ -244,7 +244,7 @@ def add_used_switch(switch, stage_id, stage_name, room_no, location_identifier,
244244
# print("!!!! %02X %s %s %s" % (param_val, actor.name, attr_name, arc_path))
245245

246246
if "switch" in attr_name and "num_switches" not in attr_name:
247-
if attr_name in ["invert_spawn_condition_switch", "dont_check_enable_spawn_switch"]:
247+
if attr_name in ["invert_spawn_condition_switch", "dont_check_enable_spawn_switch", "should_set_switch"]:
248248
continue
249249

250250
attr_switch = getattr(actor, attr_name)

0 commit comments

Comments
 (0)