From 7f8e46afa7e1bc232445626c8fd8d5012cf41b80 Mon Sep 17 00:00:00 2001 From: Toastical <20125180+Toastical@users.noreply.github.com> Date: Wed, 25 Jun 2025 19:04:45 +0300 Subject: [PATCH] fix horizontal offset being ignored (#29683) --- code/modules/mob/living/carbon/carbon_update_icons.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/carbon_update_icons.dm b/code/modules/mob/living/carbon/carbon_update_icons.dm index a2fd23bdb52..157452bf8aa 100644 --- a/code/modules/mob/living/carbon/carbon_update_icons.dm +++ b/code/modules/mob/living/carbon/carbon_update_icons.dm @@ -18,7 +18,13 @@ if(resize != RESIZE_DEFAULT_SIZE) changed++ ntransform.Scale(resize) - ntransform.Translate(0, (resize - 1) * 16) // Pixel Y shift: 1.25 = 4, 1.5 = 8, 2 -> 16, 3 -> 32, 4 -> 48, 5 -> 64 + if(body_position == LYING_DOWN) // Manipulate the X axis when horizontal + if(lying_angle == 270) // Depending on our lying angle, we need to add or remove from the offset. + ntransform.Translate((resize - 1) * -16, 0) + else + ntransform.Translate((resize - 1) * 16, 0) + else + ntransform.Translate(0, (resize - 1) * 16) // Pixel Y shift: 1.25 = 4, 1.5 = 8, 2 -> 16, 3 -> 32, 4 -> 48, 5 -> 64 resize = RESIZE_DEFAULT_SIZE if(changed)