Skip to content

Commit

Permalink
v1.1.2-2
Browse files Browse the repository at this point in the history
v1.1.2-2
  • Loading branch information
IBM5100o committed Jun 16, 2024
1 parent 2620e0b commit 4896e35
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions HDT_BGrank/BGrank.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,12 @@ private void GetOppNames()
}
if (allPass)
{
if (BattleTagModOn(tmpNames))
// For those who use the BattleTag MOD
for (int i = 0; i < tmpNames.Count; i++)
{
for (int i = 0; i < tmpNames.Count; i++)
int index = tmpNames[i].IndexOf('#');
if (index > 0)
{
int index = tmpNames[i].LastIndexOf('#');
tmpNames[i] = tmpNames[i].Substring(0, index);
}
}
Expand Down Expand Up @@ -287,17 +288,5 @@ private static dynamic[] GetPlayerTiles(dynamic leaderboardMgr)
}
return result.ToArray();
}

private bool BattleTagModOn(List<string> nameList)
{
foreach (string name in nameList)
{
if (!name.Contains('#'))
{
return false;
}
}
return true;
}
}
}

0 comments on commit 4896e35

Please sign in to comment.