Skip to content

Commit

Permalink
(station) Fix defaultstation 4450 handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Jan 13, 2025
1 parent 208614c commit 1600e8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agrf/lib/building/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def graphics(self, scale, bpp, climate="temperate", subclimate="default"):
# FIXME handle flags correctly
if self.sprite_id in self.climate_independent_tiles:
img = np.asarray(self.climate_independent_tiles[self.sprite_id])
elif self.sprite == 3981:
img = np.asarray(self.climate_dependent_tiles[(climate, 4550 if subclimate != "default" else 3981)])
else:
img = np.asarray(
self.climate_dependent_tiles[(climate, self.sprite_id + (26 if subclimate != "default" else 0))]
Expand Down Expand Up @@ -62,7 +64,7 @@ def get_resource_files(self):


DEFAULT_GRAPHICS = {}
for x in [1420, 3872, 3981, 4550]:
for x in [1420, 3872, 3981]:
DEFAULT_GRAPHICS[x] = BuildingCylindrical.create_variants([DefaultGraphics(x)])
for x in [1011, 1313]:
DEFAULT_GRAPHICS[x] = BuildingSymmetrical.create_variants([DefaultGraphics(x), DefaultGraphics(x + 1)])
Expand Down

0 comments on commit 1600e8c

Please sign in to comment.