From 08d0f7825a040c71daf4936c6d7f7bbbb5ff7380 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Mon, 14 Jun 2021 08:01:54 +0300 Subject: [PATCH] fix warnings --- ScoreboardExt/Classes/GUIStyleBase.uc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ScoreboardExt/Classes/GUIStyleBase.uc b/ScoreboardExt/Classes/GUIStyleBase.uc index 523a92c..766d47b 100644 --- a/ScoreboardExt/Classes/GUIStyleBase.uc +++ b/ScoreboardExt/Classes/GUIStyleBase.uc @@ -590,12 +590,12 @@ final function DrawCornerSmart(float X, float Y, int Edge, int CornerPosition, i final function DrawRectBoxSmart(float X, float Y, float W, float H, int Edge, int TopLeftShape, int TopRightShape, int BottomLeftShape, int BottomRightShape) { - local float BoxX, BoxY, BoxW, BoxH; + local float BoxX, BoxW; // Top Line DrawCornerSmart(X, Y, Edge, ECP_TopLeft, TopLeftShape); - BoxX = X; BoxY = Y; BoxW = W; BoxH = Edge; + BoxX = X; BoxW = W; if (TopLeftShape == ECS_BeveledCorner) { BoxX += Edge; @@ -617,7 +617,7 @@ final function DrawRectBoxSmart(float X, float Y, float W, float H, int Edge, in // Bottom Line DrawCornerSmart(X, Y + H, Edge, ECP_BottomLeft, BottomLeftShape); - BoxX = X; BoxY = Y + H - Edge; BoxW = W; BoxH = Edge; + BoxX = X; BoxW = W; if (BottomLeftShape == ECS_BeveledCorner) { BoxX += Edge;