Skip to content

Commit 1d833d7

Browse files
authored
Correct use of sx and sy
Correcting a typo I made just previously.
1 parent 0d0e047 commit 1d833d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arcade/tilemap/tilemap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,8 +924,8 @@ def _process_object_layer(
924924
- cur_object.coordinates.y
925925
) * scaling + offset[1]
926926

927-
ex = x + cur_object.size.width * scaling
928-
ey = y - cur_object.size.height * scaling
927+
ex = sx + cur_object.size.width * scaling
928+
ey = sy - cur_object.size.height * scaling
929929

930930
p1 = [sx, sy]
931931
p2 = [ex, sy]

0 commit comments

Comments
 (0)