]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Polymorphs spawn using the parents world rotation (#27223)
authorkeronshb <54602815+keronshb@users.noreply.github.com>
Mon, 22 Apr 2024 08:39:07 +0000 (04:39 -0400)
committerGitHub <noreply@github.com>
Mon, 22 Apr 2024 08:39:07 +0000 (01:39 -0700)
changes polymorph spawn to use angle

Content.Server/Polymorph/Systems/PolymorphSystem.cs

index 8cae15d70df6617f0d0bb535ebf29217d3ffced0..e6ba1d02afdc84d141311fdb7fee1b38ca2799a7 100644 (file)
@@ -199,7 +199,7 @@ public sealed partial class PolymorphSystem : EntitySystem
 
         var targetTransformComp = Transform(uid);
 
-        var child = Spawn(configuration.Entity, targetTransformComp.Coordinates);
+        var child = Spawn(configuration.Entity, _transform.GetMapCoordinates(uid, targetTransformComp), rotation: _transform.GetWorldRotation(uid));
 
         MakeSentientCommand.MakeSentient(child, EntityManager);