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(