Skip to content

Commit 5dea022

Browse files
committed
..
1 parent 76f2e59 commit 5dea022

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

agrf/lib/building/foundation.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,12 @@ def get_sprite_conf(self, style, i):
111111
if left is not None:
112112
left = [left % 2, left // 2 % 2, left // 2 % 2, left // 4]
113113
if self.sw_shareground:
114-
left[0] = -self.zshift // 8
115-
left[1] = -self.zshift // 8
114+
left[0] = left[1] = min(left[0], left[1]) - 1
116115

117116
if right is not None:
118117
right = [right % 2, right // 2 % 2, right // 2 % 2, right // 4]
119118
if self.se_shareground:
120-
right[0] = -self.zshift // 8
121-
right[1] = -self.zshift // 8
119+
right[0] = right[1] = min(right[0], right[1]) - 1
122120

123121
return left, right, y_limit
124122

0 commit comments

Comments
 (0)