Skip to content

Commit

Permalink
Cropping fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Sep 25, 2023
1 parent 933efa9 commit fd0bcfb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/__HELPERS/icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ world

if (
addX1 != flatX1 \
&& addX2 != flatX2 \
&& addY1 != flatY1 \
&& addY2 != flatY2 \
|| addX2 != flatX2 \
|| addY1 != flatY1 \
|| addY2 != flatY2 \
)
// Resize the flattened icon so the new icon fits
flat.Crop(
Expand All @@ -464,8 +464,8 @@ world
)

flatX1 = addX1
flatX2 = addY1
flatY1 = addX2
flatX2 = addX2
flatY1 = addY1
flatY2 = addY2

// Blend the overlay into the flattened icon
Expand Down

0 comments on commit fd0bcfb

Please sign in to comment.