From 6475bb7884ab3670417e4b3d8007384baf39572a Mon Sep 17 00:00:00 2001 From: Ethan Moffat Date: Tue, 2 May 2023 16:55:08 -0700 Subject: [PATCH] Fix render position of other characters --- EndlessClient/Rendering/Character/CharacterRenderer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EndlessClient/Rendering/Character/CharacterRenderer.cs b/EndlessClient/Rendering/Character/CharacterRenderer.cs index ccc6690bf..c97062c49 100644 --- a/EndlessClient/Rendering/Character/CharacterRenderer.cs +++ b/EndlessClient/Rendering/Character/CharacterRenderer.cs @@ -304,8 +304,8 @@ private void DrawToRenderTarget() _sb.Draw(_outline, DrawArea.WithPosition(new Vector2(DrawArea.X, DrawArea.Y + DrawArea.Height)).WithSize(DrawArea.Width, 1), Color.Black); _sb.Draw(_outline, DrawArea.WithSize(1, DrawArea.Height), Color.Black); - _sb.Draw(_outline, DrawArea, Color.FromNonPremultiplied(255, 0, 0, 64)); - } + _sb.Draw(_outline, DrawArea, Color.FromNonPremultiplied(255, 0, 0, 64)); + } _sb.End(); GraphicsDevice.SetRenderTarget(null); @@ -327,7 +327,7 @@ private Color GetAlphaColor() private void SetGridCoordinatePosition() { var centerX = _clientWindowSizeRepository.Resizable ? _clientWindowSizeRepository.Width / 2 - 8 : 310; - var centerY = _clientWindowSizeRepository.Resizable ? _clientWindowSizeRepository.Height * 45 / 100 : 104; + var centerY = _clientWindowSizeRepository.Resizable ? _clientWindowSizeRepository.Height * 45 / 100 + 16 : 104; var screenX = _renderOffsetCalculator.CalculateOffsetX(_character.RenderProperties) + centerX - GetMainCharacterOffsetX(); var screenY = _renderOffsetCalculator.CalculateOffsetY(_character.RenderProperties) + centerY - GetMainCharacterOffsetY();