From d6d3ba3b0812a10a4255c463b8f20b40983fb582 Mon Sep 17 00:00:00 2001 From: onee-only Date: Tue, 26 Nov 2024 05:49:26 +0000 Subject: [PATCH] =?UTF-8?q?=EC=84=B9=EC=85=98=20=EC=9E=AC=EC=82=AC?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- board/internal/board.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/internal/board.py b/board/internal/board.py index 283d6b4..340ffbe 100644 --- a/board/internal/board.py +++ b/board/internal/board.py @@ -33,7 +33,8 @@ def fetch(start: Point, end: Point): fetched = None for sec_y in range(start.y // Section.LENGTH, end.y // Section.LENGTH - 1, - 1): for sec_x in range(start.x // Section.LENGTH, end.x // Section.LENGTH + 1): - section = Board.sections[sec_y][sec_x] + # TODO: 임시로 기존 맵 돌려쓰도록 만듦. **나중에 삭제** + section = Board.sections[sec_y % -len(Board.sections)][sec_x % -len(Board.sections)] start_p = Point( x=max(start.x, section.abs_x) - (section.abs_x),