Skip to content

Commit

Permalink
Теперь шаттл летит мгновенно
Browse files Browse the repository at this point in the history
Signed-off-by: JDtrimble <[email protected]>
  • Loading branch information
pxc1984 committed Jul 18, 2024
1 parent 487c382 commit c7ed605
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private void OnMapInit(EntityUid targetUid, RoundstartFtlTargetComponent ftlTarg
if (!TryComp(rootUids[0], out PhysicsComponent? shuttlePhysics))
return;
var targetCoordinates = new EntityCoordinates(xform.MapUid!.Value, _transform.GetWorldPosition(xform)).Offset(Angle.Zero.RotateVec(-shuttlePhysics.LocalCenter));
_shuttles.FTLToCoordinates(rootUids[0], shuttleComp, targetCoordinates, Angle.Zero);
_shuttles.FTLToCoordinates(rootUids[0], shuttleComp, targetCoordinates, Angle.Zero, 0, 0);
Log.Debug($"onmapinit, ftlsuccessful: {rootUids[0]}, {targetCoordinates}");
}
}

0 comments on commit c7ed605

Please sign in to comment.