diff --git a/YAS/Classes/YAS.uc b/YAS/Classes/YAS.uc index 6eee87d..7b4f2c4 100644 --- a/YAS/Classes/YAS.uc +++ b/YAS/Classes/YAS.uc @@ -259,10 +259,8 @@ private function PostInit() SetTimer(UpdateInterval, true, nameof(UpdateTimer)); - `Log_Base("MessageOfTheDayTimer Length:" @ CfgMessageOfTheDay.default.Message.Length); if (CfgMessageOfTheDay.default.Message.Length > 0) { - `Log_Base("init MessageOfTheDayTimer:"); MessageOfTheDayTimer(); SetTimer(CfgMessageOfTheDay.default.DisplayTime, true, nameof(MessageOfTheDayTimer)); } @@ -305,8 +303,6 @@ private function MessageOfTheDayTimer() MessageIndex = 0; } - `Log_Base("MessageOfTheDayTimer:" @ MessageIndex); - foreach RepInfos(RepInfo) { RepInfo.MessageOfTheDay = CfgMessageOfTheDay.default.Message[MessageIndex]; @@ -348,12 +344,12 @@ public function NotifyLogout(Controller C) public function YAS_RepInfo CreateRepInfo(Controller C) { local YAS_RepInfo OwnerRepInfo; - local YAS_RankRepInfo RankRepInfo; + local YAS_RepInfoRank RankRepInfo; `Log_Trace(); OwnerRepInfo = Spawn(class'YAS_RepInfo', C); - RankRepInfo = Spawn(class'YAS_RankRepInfo', C); + RankRepInfo = Spawn(class'YAS_RepInfoRank', C); if (OwnerRepInfo != None && RankRepInfo != None) { diff --git a/YAS/Classes/YAS_RepInfo.uc b/YAS/Classes/YAS_RepInfo.uc index b128f35..4f2ec69 100644 --- a/YAS/Classes/YAS_RepInfo.uc +++ b/YAS/Classes/YAS_RepInfo.uc @@ -7,7 +7,7 @@ var public repnotify SystemRank RankPlayer, RankAdmin; var public repnotify String DynamicServerName, MessageOfTheDay; var public repnotify bool UsesStats, Custom, PasswordRequired; -var public YAS_RankRepInfo RankRepInfo; +var public YAS_RepInfoRank RankRepInfo; var private KFPlayerController KFPC; var private YAS_ScoreBoard SC; @@ -39,8 +39,6 @@ public simulated event ReplicatedEvent(name VarName) { `Log_Trace(); - `Log_Base("ReplicatedEvent:" @ VarName); - switch (VarName) { case 'LogLevel': diff --git a/YAS/Classes/YAS_RankRepInfo.uc b/YAS/Classes/YAS_RepInfoRank.uc similarity index 93% rename from YAS/Classes/YAS_RankRepInfo.uc rename to YAS/Classes/YAS_RepInfoRank.uc index 483077a..6f9a127 100644 --- a/YAS/Classes/YAS_RankRepInfo.uc +++ b/YAS/Classes/YAS_RepInfoRank.uc @@ -1,4 +1,4 @@ -class YAS_RankRepInfo extends ReplicationInfo; +class YAS_RepInfoRank extends ReplicationInfo; var public UniqueNetID UID; var public Rank Rank; diff --git a/YAS/Classes/YAS_ScoreBoard.uc b/YAS/Classes/YAS_ScoreBoard.uc index c7257fe..5612c2f 100644 --- a/YAS/Classes/YAS_ScoreBoard.uc +++ b/YAS/Classes/YAS_ScoreBoard.uc @@ -47,7 +47,7 @@ var float PingBars; var localized String Players, Spectators; // Cache -var public Array RepInfos; +var public Array RepInfos; var public YAS_Settings Settings; var public String DynamicServerName, MessageOfTheDay; @@ -61,7 +61,7 @@ var private float FontScalarMod; function Rank PlayerRank(KFPlayerReplicationInfo KFPRI) { - local YAS_RankRepInfo RepInfo; + local YAS_RepInfoRank RepInfo; local Rank Rank; local bool NeedClean, FoundRepInfo; @@ -90,7 +90,7 @@ function Rank PlayerRank(KFPlayerReplicationInfo KFPRI) if (!FoundRepInfo) { - foreach KFPRI.DynamicActors(class'YAS_RankRepInfo', RepInfo) + foreach KFPRI.DynamicActors(class'YAS_RepInfoRank', RepInfo) { if (RepInfo.UID.Uid == KFPRI.UniqueId.Uid) {