fix 1 player shape

This commit is contained in:
GenZmeY 2021-06-13 10:01:07 +03:00
parent 5a70c4a4ac
commit ad77bf6d51

View File

@ -430,9 +430,9 @@ function DrawPlayerEntry(Canvas C, int Index, float YOffset, float Height, float
if (!Settings.State.Dynamic)
SetDrawColor(C, Settings.Style.LeftStateBoxColor);
if (Index == 0)
if (KFPRIArray.Length > 1 && Index == 0)
Shape = Settings.Style.ShapeLeftStateBoxTopPlayer;
else if (Index == KFPRIArray.Length - 1)
else if (KFPRIArray.Length > 1 && Index == KFPRIArray.Length - 1)
Shape = Settings.Style.ShapeLeftStateBoxBottomPlayer;
else
Shape = Settings.Style.ShapeLeftStateBoxMidPlayer;
@ -452,9 +452,9 @@ function DrawPlayerEntry(Canvas C, int Index, float YOffset, float Height, float
else
SetDrawColor(C, Settings.Style.PlayerBoxColor);
if (Index == 0)
if (KFPRIArray.Length > 1 && Index == 0)
Shape = Settings.Style.ShapePlayerBoxTopPlayer;
else if (Index == KFPRIArray.Length - 1)
else if (KFPRIArray.Length > 1 && Index == KFPRIArray.Length - 1)
Shape = Settings.Style.ShapePlayerBoxBottomPlayer;
else
Shape = Settings.Style.ShapePlayerBoxMidPlayer;
@ -465,9 +465,9 @@ function DrawPlayerEntry(Canvas C, int Index, float YOffset, float Height, float
XPos += BoxWidth;
// Right stats box
if (Index == 0)
if (KFPRIArray.Length > 1 && Index == 0)
Shape = Settings.Style.ShapeStatsBoxTopPlayer;
else if (Index == KFPRIArray.Length - 1)
else if (KFPRIArray.Length > 1 && Index == KFPRIArray.Length - 1)
Shape = Settings.Style.ShapeStatsBoxBottomPlayer;
else
Shape = Settings.Style.ShapeStatsBoxMidPlayer;