Do not consider inactive players when bubbled
This commit is contained in:
parent
eea5ebb94b
commit
98cc31d6cb
|
@ -927,6 +927,7 @@ s32 act_bubbled(struct MarioState* m) {
|
||||||
if (m->playerIndex == 0) {
|
if (m->playerIndex == 0) {
|
||||||
u8 allInBubble = TRUE;
|
u8 allInBubble = TRUE;
|
||||||
for (int i = 0; i < MAX_PLAYERS; i++) {
|
for (int i = 0; i < MAX_PLAYERS; i++) {
|
||||||
|
if (!is_player_active(&gMarioStates[i])) { continue; }
|
||||||
if (gMarioStates[i].action != ACT_BUBBLED && gMarioStates[i].health >= 0x100) {
|
if (gMarioStates[i].action != ACT_BUBBLED && gMarioStates[i].health >= 0x100) {
|
||||||
allInBubble = FALSE;
|
allInBubble = FALSE;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue