Skip to content

Commit

Permalink
fix player default rank apply
Browse files Browse the repository at this point in the history
  • Loading branch information
GenZmeY committed Jun 27, 2023
1 parent 4ee7d2c commit b824302
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions YAS/Classes/YAS.uc
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ public function YAS_RepInfoOwner CreateRepInfo(Controller C)
{
RepInfos.AddItem(OwnerRepInfo);

PlayerRepInfo.Rank = class'YAS_Types'.static.FromSystemRank(CfgRanks.default.Player);
OwnerRepInfo.PlayerRepInfo = PlayerRepInfo;
OwnerRepInfo.YAS = Self;
OwnerRepInfo.LogLevel = LogLevel;
Expand Down
2 changes: 2 additions & 0 deletions YAS/Classes/YAS_RepInfoOwner.uc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public simulated event ReplicatedEvent(name VarName)
{
`Log_Trace();

`Log_Debug(`Location @ "Var:" @ VarName);

switch (VarName)
{
case 'LogLevel':
Expand Down

0 comments on commit b824302

Please sign in to comment.