Skip to content

Commit

Permalink
(RT) Use upstream get_sprite API
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Oct 21, 2023
1 parent 85cb613 commit d93b472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion road/lib/docgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d93b472

Please sign in to comment.