From 3eb80d79c704e5f48af01bd2a65993312ab792a4 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sat, 22 Mar 2025 12:32:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AE=AD=E5=A4=B4=E6=96=B9=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ginka/validate.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ginka/validate.py b/ginka/validate.py index 8a87bae..76a1fbc 100644 --- a/ginka/validate.py +++ b/ginka/validate.py @@ -42,13 +42,13 @@ def matrix_to_image_cv(map_matrix, tile_set, tile_size=32): if tile_index == '11': if row == 0: - tile_index = '11_2' - elif row == W - 1: - tile_index = '11_4' - elif col == 0: tile_index = '11_1' - elif col == H - 1: + elif row == W - 1: tile_index = '11_3' + elif col == 0: + tile_index = '11_2' + elif col == H - 1: + tile_index = '11_4' # 叠加其他透明图块 if tile_index in tile_set and tile_index != 0: