From 5fae8598e12aeaff6b266f93359690327ba8d2b7 Mon Sep 17 00:00:00 2001 From: ElectroJr Date: Sun, 12 Jun 2022 02:48:55 -0400 Subject: [PATCH] Fix cross grid movement --- Content.Shared/Movement/SharedMoverController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Shared/Movement/SharedMoverController.cs b/Content.Shared/Movement/SharedMoverController.cs index 36423ae8c9dd..0dbadd5d9587 100644 --- a/Content.Shared/Movement/SharedMoverController.cs +++ b/Content.Shared/Movement/SharedMoverController.cs @@ -90,11 +90,11 @@ protected void HandleKinematicMovement(IMoverComponent mover, PhysicsComponent p var worldTotal = _relativeMovement ? parentRotation.RotateVec(total) : total; - if (transform.GridEntityId == EntityUid.Invalid) + if (transform.GridEntityId != EntityUid.Invalid) mover.LastGridAngle = parentRotation; if (worldTotal != Vector2.Zero) - transform.LocalRotation = transform.GridEntityId == EntityUid.Invalid + transform.LocalRotation = transform.GridEntityId != EntityUid.Invalid ? total.ToWorldAngle() : worldTotal.ToWorldAngle();