Skip to content

Commit

Permalink
img-extract.py - Eliminate culled sprites from build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexxie9952 committed Feb 17, 2024
1 parent bd2b559 commit 6fc5c22
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/freeciv-img-extract/img-extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
"wonders-large.spec",
"colors.tilespec",
"buildings-large.spec",
"overlays.spec",
# "overlays.spec",
"shields.spec",
"small.spec",
"governments.spec",
"specialists.spec",
"space.spec",
"editor.spec",
# "space.spec", sadly, not used yet
# "editor.spec",
"techs.spec",
"treaty.spec",
"citybar.spec",
Expand All @@ -71,7 +71,7 @@
"grassland.spec",
"desert.spec",
"ocean.spec",
"select.spec",
"select.spec", # rotating ring around selected unit
"terrain2.spec",
"tiles.spec",
"units.spec",
Expand Down Expand Up @@ -350,7 +350,8 @@ def increment_tileset_image(tileset_name):
if (tag2 != None and len(tag2) > 0):
coords[tileset_id][tag2] = (curr_x, curr_y, w, h, tileset_inc);

if not (tileset_id == "amplio2" or tileset_id == "isotrident"):
# if not (tileset_id == "amplio2" or tileset_id == "isotrident"): don't use isotrident
if not (tileset_id == "amplio2"):
increment_tileset_image(tileset_id);
else:
for src_key in dither_map.keys():
Expand Down

0 comments on commit 6fc5c22

Please sign in to comment.