Skip to content

Commit

Permalink
Something
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr0maks committed Aug 9, 2023
1 parent ceeea53 commit e73f468
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Content.MapRenderer/Painters/EntityData.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;

namespace Content.MapRenderer.Painters;

Expand Down
2 changes: 1 addition & 1 deletion Content.MapRenderer/Painters/EntityPainter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit e73f468

Please sign in to comment.