Skip to content

Commit

Permalink
Fix debug overlay for position marks (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
theCapypara authored Aug 6, 2024
1 parent e8b56e8 commit f7d8002
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion skytemple_ssb_debugger/controller/debug_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ def draw(self, ctx: cairo.Context, display_id: int):
ground_state = self.debugger.ground_engine_state
for ssb in ground_state.loaded_ssb_files:
if ssb is not None:
for mark in ground_state.ssb_file_manager.get(ssb.file_name).position_markers: # type: ignore
pos_marks = ground_state.ssb_file_manager.get(ssb.file_name).position_markers
if pos_marks is None:
continue
for mark in pos_marks:
x_absolute = (mark.x_with_offset * TILE_SIZE) - self._camera_pos_cache[0]
y_absolute = (mark.y_with_offset * TILE_SIZE) - self._camera_pos_cache[1]
ctx.set_source_rgba(*COLOR_POS_MARKERS)
Expand Down

0 comments on commit f7d8002

Please sign in to comment.