fix random stage

This commit is contained in:
Nikhil Narayana 2022-05-30 13:34:33 -07:00
commit 27182ca320

View file

@ -2564,6 +2564,9 @@ void CEXISlippi::prepareOnlineMatchState()
onlineMatchBlock[0x61 + 3 * 0x24] = 0; onlineMatchBlock[0x61 + 3 * 0x24] = 0;
} }
u16* stage = (u16*)&onlineMatchBlock[0xE];
*stage = Common::swap16(stageId);
// Turn pause off in unranked/ranked, on in other modes // Turn pause off in unranked/ranked, on in other modes
auto pauseAllowed = !SlippiMatchmaking::IsFixedRulesMode(lastSearch.mode) && auto pauseAllowed = !SlippiMatchmaking::IsFixedRulesMode(lastSearch.mode) &&
lastSearch.mode != SlippiMatchmaking::OnlinePlayMode::TEAMS; lastSearch.mode != SlippiMatchmaking::OnlinePlayMode::TEAMS;