From b0bac2ea642ab9074b2a76ea39f078f0d4b418d6 Mon Sep 17 00:00:00 2001 From: Nicolas Nattis Date: Fri, 2 Oct 2020 14:19:24 -0300 Subject: [PATCH] some improvement maybe --- code/modules/photography/camera/camera_image_capturing.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/photography/camera/camera_image_capturing.dm b/code/modules/photography/camera/camera_image_capturing.dm index b6e81ec2202..7f7caa0bfee 100644 --- a/code/modules/photography/camera/camera_image_capturing.dm +++ b/code/modules/photography/camera/camera_image_capturing.dm @@ -89,9 +89,11 @@ var/sx = clone.transform.get_x_scale() var/sy = clone.transform.get_y_scale() if(sx != 1 || sy != 1) - img.Scale(img.Width() * sx, img.Height() * sy) - xo -= world.icon_size * (sx - 1) / 2 - yo -= world.icon_size * (sy - 1) / 2 + var/base_w = img.Width() + var/base_h = img.Height() + img.Scale(base_w * sx, base_h * sy) + xo -= base_w * (sx - 1) / 2 + yo -= base_h * (sy - 1) / 2 var/rx = clone.transform.get_rotation() if(rx != 0) img.Turn(rx)