mirror of
https://github.com/project-slippi/Ishiiruka.git
synced 2025-10-05 16:02:53 +02:00
fix: properly detect grandmaster for regional gms
This commit is contained in:
2
Externals/SlippiRustExtensions
vendored
2
Externals/SlippiRustExtensions
vendored
Submodule Externals/SlippiRustExtensions updated: 39a961f4f2...9b0f3a12c3
@@ -2162,8 +2162,8 @@ void CEXISlippi::prepareOnlineMatchState()
|
||||
// in CSS p1 is always current player and p2 is opponent
|
||||
localPlayerName = p1Name = userInfo.displayName;
|
||||
oppName = p2Name = "Player 2";
|
||||
localRank = 8;
|
||||
oppRank = 15;
|
||||
p1Rank = 8;
|
||||
p2Rank = 15;
|
||||
#endif
|
||||
|
||||
SlippiDesyncRecoveryResp desync_recovery;
|
||||
@@ -2495,6 +2495,8 @@ void CEXISlippi::prepareOnlineMatchState()
|
||||
bool isRanked = lastSearch.mode == SlippiMatchmaking::OnlinePlayMode::RANKED;
|
||||
if (isRanked)
|
||||
{
|
||||
// This has to be outside the player ready block because in game setup 2 the players are not
|
||||
// ready at the start
|
||||
bool showLocaLRank = SConfig::GetInstance().bSlippiPlayerRankDisplay;
|
||||
bool showOppRank = SConfig::GetInstance().bSlippiOpponentRankDisplay;
|
||||
|
||||
|
@@ -739,7 +739,7 @@ SlippiMatchmaking::SlippiRank SlippiMatchmaking::GetPlayerRank(u8 port)
|
||||
return SlippiRank::Diamond3;
|
||||
}
|
||||
|
||||
if (rating >= 2191.75f && global > 0 && regional > 0)
|
||||
if (rating >= 2191.75f && (global > 0 || regional > 0))
|
||||
{
|
||||
return SlippiRank::Grandmaster;
|
||||
}
|
||||
|
Reference in New Issue
Block a user