From 6ef1e6e677af018daacf98bead3e9cddca7367d4 Mon Sep 17 00:00:00 2001 From: Virx Date: Sat, 2 Nov 2024 15:20:23 -0400 Subject: [PATCH] Fix Rect2D render coords --- RLBotCS/ManagerTools/Rendering.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RLBotCS/ManagerTools/Rendering.cs b/RLBotCS/ManagerTools/Rendering.cs index 4fb9e1f..21e132b 100644 --- a/RLBotCS/ManagerTools/Rendering.cs +++ b/RLBotCS/ManagerTools/Rendering.cs @@ -87,7 +87,7 @@ private ushort SendRect2D(Rect2DT rect2Dt) var adjustedX = !rect2Dt.Centered && rect2Dt.Width < 0 ? rect2Dt.X - rect2Dt.Width : rect2Dt.X; var adjustedY = - !rect2Dt.Centered && rect2Dt.Height < 0 ? rect2Dt.Y - rect2Dt.Height : rect2Dt.X; + !rect2Dt.Centered && rect2Dt.Height < 0 ? rect2Dt.Y - rect2Dt.Height : rect2Dt.Y; // Fake a filled rectangle using a string with colored background var (text, scale) = MakeFakeRectangleString(