Closed thearst3rd closed 1 year ago
Don't merge this, it doesn't work since $MissionType
can have spaces in it (e.g. "Packs 1-9")
Ok I'm using newlines+records instead and it seems to work including the packs. There may still be cases I'm not aware of and have yet to test.
Thank you!
EndGameDlg::getNextLevel
was callingPlayMissionGui::setMissionType
which was mutating the$MissionType
, and since it was called multiple times (once to determine if the button should show, another time to actually jump to the right level) it was causing issues. This seems to fix it. The next button has had issues before so it's worth looking over to see if this actually makes sense and won't cause erroneous WRs like it did before. In my singleplayer testing though, I wasn't able to break it and it seems to work fine