Skip to content

Commit

Permalink
Fix the rendering offset for more complex textures in the mouse map (O…
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit authored Jul 19, 2024
1 parent d0be78d commit b8ada05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenDreamClient/Rendering/DreamPlane.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public void DrawMouseMap(DrawingHandleWorld handle, DreamViewOverlay overlay, Ve
continue;

var pos = (sprite.Position - worldAABB.BottomLeft) * EyeManager.PixelsPerMeter;
if (sprite.TextureOverride != null)
pos -= sprite.TextureOverride.Size / 2 - new Vector2(EyeManager.PixelsPerMeter, EyeManager.PixelsPerMeter) / 2;
if (sprite.MainIcon != null)
pos += sprite.MainIcon.TextureRenderOffset;

int hash = sprite.GetHashCode();
var colorR = (byte)(hash & 0xFF);
Expand Down

0 comments on commit b8ada05

Please sign in to comment.