mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 12:01:43 +00:00
Fixed desync for late joiners when using Non-stop mode and made bubble when no lives remaining kick you out of the level (#40)
This commit is contained in:
parent
cb8bd36698
commit
acd14c2718
2 changed files with 3 additions and 0 deletions
|
|
@ -944,6 +944,7 @@ u32 interact_star_or_key(struct MarioState *m, UNUSED u32 interactType, struct O
|
|||
if (grandStar) {
|
||||
return set_mario_action(m, ACT_JUMBO_STAR_CUTSCENE, 0);
|
||||
}
|
||||
save_file_do_save(gCurrSaveFileNum - 1, TRUE);
|
||||
|
||||
if (!noExit || gServerSettings.stayInLevelAfterStar != 2) {
|
||||
return set_mario_action(m, starGrabAction, noExit + 2 * grandStar);
|
||||
|
|
|
|||
|
|
@ -1016,6 +1016,8 @@ s32 act_bubbled(struct MarioState* m) {
|
|||
if (m->playerIndex == 0) {
|
||||
if (m->numLives == -1) {
|
||||
m->marioObj->header.gfx.node.flags |= GRAPH_RENDER_INVISIBLE;
|
||||
level_trigger_warp(m, WARP_OP_DEATH);
|
||||
return set_mario_action(m, ACT_SOFT_BONK, 0);
|
||||
} else {
|
||||
m->marioObj->header.gfx.node.flags &= ~GRAPH_RENDER_INVISIBLE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue