diff --git a/Content.Shared/Movement/SharedMoverController.cs b/Content.Shared/Movement/SharedMoverController.cs index 56bc2838af..930e769d01 100644 --- a/Content.Shared/Movement/SharedMoverController.cs +++ b/Content.Shared/Movement/SharedMoverController.cs @@ -85,9 +85,7 @@ namespace Content.Shared.Movement var worldTotal = _relativeMovement ? parentRotation.RotateVec(total) : total; - if (transform.GridID == GridId.Invalid) - worldTotal = mover.LastGridAngle.RotateVec(worldTotal); - else + if (transform.GridID != GridId.Invalid) mover.LastGridAngle = parentRotation; if (worldTotal != Vector2.Zero) @@ -148,9 +146,7 @@ namespace Content.Shared.Movement if (weightless) worldTotal *= mobMover.WeightlessStrength; - if (transform.GridID == GridId.Invalid) - worldTotal = mover.LastGridAngle.RotateVec(worldTotal); - else + if (transform.GridID != GridId.Invalid) mover.LastGridAngle = parentRotation; if (worldTotal != Vector2.Zero) diff --git a/Resources/Changelog/Parts/space.yml b/Resources/Changelog/Parts/space.yml new file mode 100644 index 0000000000..4472cb4442 --- /dev/null +++ b/Resources/Changelog/Parts/space.yml @@ -0,0 +1,4 @@ +author: Zumorica +changes: + - type: Fix # One of the following: Add, Remove, Tweak, Fix + message: Fixes movement in space.