Skip to content

Commit

Permalink
Update unsorted.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Helg2 committed Nov 30, 2024
1 parent 1629831 commit cc31dfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/__HELPERS/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1077,9 +1077,9 @@ will handle it, but:
var/pixel_y_offset = AM.pixel_y + M.get_y_shift()

//Irregular objects
var/icon/AMicon = icon(AM.icon, AM.icon_state)
var/AMiconheight = AMicon.Height()
var/AMiconwidth = AMicon.Width()
var/list/icon_dimensions = get_icon_dimensions(AM.icon)
var/AMiconheight = icon_dimensions["height"]
var/AMiconwidth = icon_dimensions["width"]
if(AMiconheight != world.icon_size || AMiconwidth != world.icon_size)
pixel_x_offset += ((AMiconwidth/world.icon_size)-1)*(world.icon_size*0.5)
pixel_y_offset += ((AMiconheight/world.icon_size)-1)*(world.icon_size*0.5)
Expand Down

0 comments on commit cc31dfa

Please sign in to comment.