From d93b4728225c2a3a5339a0679a6551f94a4b0bc2 Mon Sep 17 00:00:00 2001 From: "Yi Yang @ Anteros" Date: Sat, 21 Oct 2023 21:32:25 +0800 Subject: [PATCH] (RT) Use upstream `get_sprite` API --- road/lib/docgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/road/lib/docgen.py b/road/lib/docgen.py index 74527631..a704fe99 100644 --- a/road/lib/docgen.py +++ b/road/lib/docgen.py @@ -8,7 +8,7 @@ def gen_docs(string_manager, road_types): os.makedirs(os.path.join(prefix, "img"), exist_ok=True) for i, road_type in enumerate(road_types): translation = get_translation(string_manager[f"STR_RT_{road_type.translation_name}_NAME"], 0x7F) - img, bpp = road_type.underlay[0].get_zoom_bpp(grf.ZOOM_NORMAL, 32).get_image() + img, bpp = road_type.underlay[0].get_sprite(zoom=grf.ZOOM_NORMAL, bpp=32).get_image() img.save(os.path.join(prefix, "img", f"{road_type.translation_name}.png")) with open(os.path.join(prefix, f"{road_type.translation_name}.md"), "w") as f: print(