Minor fixes & remove double space

This commit is contained in:
Beu 2021-09-25 12:19:38 +02:00
parent db07c55f53
commit 10d6930807

View File

@ -247,6 +247,7 @@ Void SetML() {
<script><!-- <script><!--
#Include "TextLib" as TL #Include "TextLib" as TL
#Include "MathLib" as ML #Include "MathLib" as ML
#Include "Libs/Nadeo/CommonLibs/Common/Log.Script.txt" as Log
#Struct K_PlayerPhysics { #Struct K_PlayerPhysics {
Real AccelCoef; Real AccelCoef;
@ -468,8 +469,7 @@ Void SetML() {
// Events // Events
foreach(Event in PendingEvents) { foreach(Event in PendingEvents) {
if (Owner != Null && Owner.SpawnStatus == CSmPlayer::ESpawnStatus::Spawned) { if (Owner != Null && Owner.SpawnStatus == CSmPlayer::ESpawnStatus::Spawned) {
if (Event.Type == CMlScriptEvent::Type::MouseClick && TL::Find("_EffectButton" Event.ControlId, True, True)) { if (Event.Type == CMlScriptEvent::Type::MouseClick && TL::Find("_EffectButton", Event.ControlId, True, True)) {
declare Text Effect = TL::Replace(Event.ControlId, "_EffectButton", ""); declare Text Effect = TL::Replace(Event.ControlId, "_EffectButton", "");
declare Text Target; declare Text Target;
if (Net_PlayerIsAdmin && Last_ControledByAdmins) Target = "all"; if (Net_PlayerIsAdmin && Last_ControledByAdmins) Target = "all";