Skip to content

Commit

Permalink
(station) Remove ground childsprites for station (pushdown() is buggy…
Browse files Browse the repository at this point in the history
… here)
  • Loading branch information
ahyangyi committed Oct 13, 2024
1 parent 5e90118 commit 8ee204c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions agrf/lib/building/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def pushdown(self, steps):
else:
x += 1
y += 1
return ADefaultParentSprite(self.sprite, (1, 1, 1), (x, y, z), self.child_sprites, self.flags)
return ADefaultParentSprite(self.sprite, self.extent, (x, y, z), self.child_sprites, self.flags)

def demo_translate(self, xofs, yofs, zofs):
return ADefaultParentSprite(
Expand Down Expand Up @@ -354,7 +354,7 @@ def pushdown(self, steps):
else:
x += 1
y += 1
return AParentSprite(self.sprite, (1, 1, 1), (x, y, z), self.child_sprites, self.flags)
return AParentSprite(self.sprite, self.extent, (x, y, z), self.child_sprites, self.flags)

def demo_translate(self, xofs, yofs, zofs):
return AParentSprite(
Expand Down
9 changes: 4 additions & 5 deletions station/stations/dovemere_2018_lib/layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
gray_layout = ground_tiles.gray
gray_ps = ground_ps.gray
concourse = concourse_ps.none
third = AChildSprite(gray_third, (0, 0))
third_T = AChildSprite(gray_third.T, (0, 0))


def get_category(internal_category, back, notes, tra):
Expand Down Expand Up @@ -209,9 +207,10 @@ def register(base_id, step_id, l, symmetry, internal_category, name, broken_near


solid_ground = gray_ps
corridor_ground = track_ground + third + third_T
one_side_ground = track_ground + third
one_side_ground_t = track_ground + third_T
# FIME merge these since the groundchildsprite is no longer used here
corridor_ground = track_ground
one_side_ground = track_ground
one_side_ground_t = track_ground
empty_ground = track_ground

voxel_cache = {}
Expand Down

0 comments on commit 8ee204c

Please sign in to comment.