From 5f6298997a6162185d1a20a4b2393f769b46952d Mon Sep 17 00:00:00 2001 From: NovaBot <154629622+NovaBot13@users.noreply.github.com> Date: Thu, 11 Jan 2024 22:11:37 -0500 Subject: [PATCH] [MIRROR] Fixes the deployable component rotating things it isnt supposed to (#428) * Fixes the deployable component rotating things it isnt supposed to (#80877) ## About The Pull Request Actually moves the rotation part of the code under the check for if the component is supposed to rotate things ## Why It's Good For The Game Despite setting the variable for rotating stuff to no, the component would still rotate stuff, this is bad ## Changelog :cl: fix: The deployable component will now actually stop rotating things when the variable to not do that is set /:cl: * Fixes the deployable component rotating things it isnt supposed to --------- Co-authored-by: Paxilmaniac <82386923+Paxilmaniac@users.noreply.github.com> Co-authored-by: NovaBot --- code/datums/components/deployable.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/datums/components/deployable.dm b/code/datums/components/deployable.dm index 14fc6747bd6..f45a5b226c3 100644 --- a/code/datums/components/deployable.dm +++ b/code/datums/components/deployable.dm @@ -76,10 +76,8 @@ new_direction = direction deployed_object = new thing_to_be_deployed(deploy_location) - deployed_object.setDir(new_direction) - - // Sets the direction of the resulting object if the variable says to if(direction_setting) + deployed_object.setDir(new_direction) deployed_object.update_icon_state() deployments -= 1