From e4ef147086989a30ebb0f3da34e81d9b36be69d1 Mon Sep 17 00:00:00 2001 From: Beu Date: Tue, 8 Mar 2022 18:26:37 +0100 Subject: [PATCH] Remove useless code --- LastManStanding.Script.txt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/LastManStanding.Script.txt b/LastManStanding.Script.txt index 7c2b0b9..ddd901f 100644 --- a/LastManStanding.Script.txt +++ b/LastManStanding.Script.txt @@ -129,7 +129,7 @@ UIManager.UIAll.OverlayHideCountdown = True; Markers::SetDefaultMarker_HudVisibility(CUIConfigMarker::EHudVisibility::Always); UIManager.UIAll.LabelsVisibility = CUIConfig::EHudVisibility::Everything ; -SetML(Null); +SetML(); *** ***Match_Yield*** @@ -711,7 +711,7 @@ Boolean SetMalus(CSmPlayer _Player, Integer _Type) { * * @param _Player Malus Index */ -Void SetML(CSmPlayer _Player) { +Void SetML() { declare TotalWidth = 44.5; declare Text MLText = """ @@ -837,11 +837,7 @@ Void SetML(CSmPlayer _Player) { """; Layers::Create("LMS_UI", MLText); Layers::SetType("LMS_UI", CUILayer::EUILayerType::Normal); - if (_Player == Null) { - Layers::Attach("LMS_UI"); - } else { - Layers::Attach("LMS_UI", _Player); - } + Layers::Attach("LMS_UI"); }