Level Select: Skip path change.
Some checks failed
GenerateBuilds / generate-port-otr (push) Has been cancelled
GenerateBuilds / build-windows (push) Has been cancelled
GenerateBuilds / build-macos (push) Has been cancelled
GenerateBuilds / build-linux (push) Has been cancelled

This commit is contained in:
Sonic Dreamcaster 2025-01-09 05:56:22 -03:00
parent 31f3c231e0
commit 0bc2bf22a4

View File

@ -6722,6 +6722,9 @@ void Map_Idle_Update(void) {
movingCamera = false; movingCamera = false;
if (gControllerPress[gMainController].button & A_BUTTON) { if (gControllerPress[gMainController].button & A_BUTTON) {
if (CVarGetInteger("gLevelSelector", 0) == 1) {
goto loadLevel;
}
if ((gLastGameState == GSTATE_PLAY) && (sPrevMissionStatus != MISSION_COMPLETE) && !D_menu_801CEFD0) { if ((gLastGameState == GSTATE_PLAY) && (sPrevMissionStatus != MISSION_COMPLETE) && !D_menu_801CEFD0) {
Audio_PlayMapMenuSfx(1); Audio_PlayMapMenuSfx(1);
D_menu_801CEFC4 = 1; D_menu_801CEFC4 = 1;
@ -6730,6 +6733,7 @@ void Map_Idle_Update(void) {
sMapState = MAP_PATH_CHANGE; sMapState = MAP_PATH_CHANGE;
D_menu_801CD94C = 0; D_menu_801CD94C = 0;
} else { } else {
loadLevel:
for (i = 0; i < TEAM_ID_MAX; i++) { for (i = 0; i < TEAM_ID_MAX; i++) {
D_ctx_80177C58[i] = gTeamShields[i]; D_ctx_80177C58[i] = gTeamShields[i];
} }