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
🆑
fix: The deployable component will now actually stop rotating things
when the variable to not do that is set
/🆑
This commit is contained in:
Paxilmaniac
2024-01-12 02:58:31 +01:00
committed by GitHub
parent 854f903ac9
commit c287e627a8
+1 -3
View File
@@ -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