Skip to content

Commit

Permalink
[MIRROR] Fixes the deployable component rotating things it isnt suppo…
Browse files Browse the repository at this point in the history
…sed 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 <[email protected]>
Co-authored-by: NovaBot <[email protected]>
  • Loading branch information
3 people authored and FFMirrorBot committed Jan 12, 2024
1 parent a860ef5 commit 5f62989
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/datums/components/deployable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f62989

Please sign in to comment.