From 65f28dcfa5e03b4ab34fadfe348ae306a526be9c Mon Sep 17 00:00:00 2001 From: Fox McCloud Date: Sat, 13 Nov 2021 10:19:01 -0500 Subject: [PATCH] Removes Parallax Animate (#17083) --- code/_onclick/hud/parallax.dm | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/code/_onclick/hud/parallax.dm b/code/_onclick/hud/parallax.dm index e9b95cdd4fc..5078e019aae 100644 --- a/code/_onclick/hud/parallax.dm +++ b/code/_onclick/hud/parallax.dm @@ -192,17 +192,12 @@ if(L.view_sized != C.view) L.update_o(C.view) - var/change_x - var/change_y - if(L.absolute) L.offset_x = -(posobj.x - SSparallax.planet_x_offset) * L.speed L.offset_y = -(posobj.y - SSparallax.planet_y_offset) * L.speed else - change_x = offset_x * L.speed - L.offset_x -= change_x - change_y = offset_y * L.speed - L.offset_y -= change_y + L.offset_x -= offset_x * L.speed + L.offset_y -= offset_y * L.speed if(L.offset_x > 240) L.offset_x -= 480 @@ -213,10 +208,6 @@ if(L.offset_y < -240) L.offset_y += 480 - if(!(areaobj.parallax_movedir && areaobj.moving) && C.dont_animate_parallax <= world.time && (offset_x || offset_y) && abs(offset_x) <= max(C.parallax_throttle/world.tick_lag+1,1) && abs(offset_y) <= max(C.parallax_throttle/world.tick_lag+1,1) && (round(abs(change_x)) > 1 || round(abs(change_y)) > 1)) - L.transform = matrix(1, 0, offset_x*L.speed, 0, 1, offset_y*L.speed) - animate(L, transform=matrix(), time = last_delay) - L.screen_loc = "CENTER-7:[round(L.offset_x,1)],CENTER-7:[round(L.offset_y,1)]" /atom/movable/proc/update_parallax_contents()