Fixes moving in space.
This commit is contained in:
@@ -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)
|
||||
|
||||
4
Resources/Changelog/Parts/space.yml
Normal file
4
Resources/Changelog/Parts/space.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
author: Zumorica
|
||||
changes:
|
||||
- type: Fix # One of the following: Add, Remove, Tweak, Fix
|
||||
message: Fixes movement in space.
|
||||
Reference in New Issue
Block a user