From e73f46865df24069601b97073fb5a4528476a018 Mon Sep 17 00:00:00 2001 From: Mr0maks Date: Wed, 9 Aug 2023 21:25:27 +0500 Subject: [PATCH] Something --- Content.MapRenderer/Painters/EntityData.cs | 1 + Content.MapRenderer/Painters/EntityPainter.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.MapRenderer/Painters/EntityData.cs b/Content.MapRenderer/Painters/EntityData.cs index 9dbca4f4e02e48..2d22e85bfd8152 100644 --- a/Content.MapRenderer/Painters/EntityData.cs +++ b/Content.MapRenderer/Painters/EntityData.cs @@ -1,5 +1,6 @@ using Robust.Client.GameObjects; using Robust.Shared.GameObjects; +using Robust.Shared.Maths; namespace Content.MapRenderer.Painters; diff --git a/Content.MapRenderer/Painters/EntityPainter.cs b/Content.MapRenderer/Painters/EntityPainter.cs index 033ef01bc34e05..2181892e6cb1ba 100644 --- a/Content.MapRenderer/Painters/EntityPainter.cs +++ b/Content.MapRenderer/Painters/EntityPainter.cs @@ -135,7 +135,7 @@ public void Run(Image canvas, EntityData entity, SharedTransformSystem xformSyst var pointX = (int) entity.X - (imgX / 2) + EyeManager.PixelsPerMeter / 2; var pointY = (int) entity.Y - (imgY / 2) + EyeManager.PixelsPerMeter / 2; - image.Mutate(o => o.Rotate((float) -entity.Rotation.Degrees)); + image.Mutate(o => o.Rotate((float)entity.Rotation.Degrees)); canvas.Mutate(o => o.DrawImage(image, new Point(pointX, pointY), 1)); } }