Skip to content

Commit 5945eb4

Browse files
committed
Fix goal hidden when drawing
1 parent a23f435 commit 5945eb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/renderer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def render(self, agent: Agent) -> None:
4444

4545
surface.blit(self.walls, (0, 0))
4646
self._render_agent(surface, agent)
47-
self._draw_rect(((TILES_WIDTH - 2) * TILE_SIZE), ((TILES_HEIGHT - 2) * TILE_SIZE), PATH_COLOR, self.walls)
47+
self._draw_rect(((TILES_WIDTH - 2) * TILE_SIZE), ((TILES_HEIGHT - 2) * TILE_SIZE), PATH_COLOR, surface)
4848

4949
self.screen.fill(HEADER_COLOR)
5050
self.screen.blit(surface, (0, HEADER_SIZE))

0 commit comments

Comments
 (0)