pull in project-slippi/Ishiiruka/pull/246/commits/cd2cf4fb44ae11bb96a99c56abbd2eaa8723f231

fix stage selection on first match bug
This commit is contained in:
Nikhil Narayana 2021-12-19 11:39:36 -08:00
commit a87f4ca984
2 changed files with 0 additions and 8 deletions

View file

@ -2339,12 +2339,6 @@ void CEXISlippi::setMatchSelections(u8* payload)
s.rngOffset = generator() % 0xFFFF;
if (matchmaking->LocalPlayerIndex() == 1 && firstMatch)
{
firstMatch = false;
s.stageId = getRandomStage(onlineMode);
}
// Merge these selections
localSelections.Merge(s);
@ -2542,7 +2536,6 @@ void CEXISlippi::handleConnectionCleanup()
// Reset play session
is_play_session_active = false;
firstMatch = true;
#ifdef LOCAL_TESTING
isLocalConnected = false;

View file

@ -224,7 +224,6 @@ private:
u32 frameSeqIdx = 0;
bool isEnetInitialized = false;
bool firstMatch = true;
std::default_random_engine generator;