From cc31dfa0b187474b281c2728341ac309a2cd2981 Mon Sep 17 00:00:00 2001 From: Helg2 Date: Sat, 30 Nov 2024 20:39:28 +0200 Subject: [PATCH] Update unsorted.dm --- code/__HELPERS/unsorted.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 8733730f816..1cfd6b3674d 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -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)