Return TRUE for interactions with Power Stars when Non-stop mode is enabled (#57)

This commit is contained in:
Altiami 2022-04-06 01:14:47 -07:00 committed by GitHub
parent 058183d020
commit b977f48259
1 changed files with 4 additions and 2 deletions

View File

@ -946,9 +946,11 @@ u32 interact_star_or_key(struct MarioState *m, UNUSED u32 interactType, struct O
}
save_file_do_save(gCurrSaveFileNum - 1, TRUE);
if (!noExit || gServerSettings.stayInLevelAfterStar != 2) {
return set_mario_action(m, starGrabAction, noExit + 2 * grandStar);
if (noExit && gServerSettings.stayInLevelAfterStar == 2) {
return TRUE;
}
return set_mario_action(m, starGrabAction, noExit + 2 * grandStar);
}
return FALSE;