mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-07-12 17:31:06 +00:00
oop
add delay to bubble exit TODO: solve extra life loss
This commit is contained in:
parent
82c6c9c487
commit
d07818b6f1
3 changed files with 5 additions and 6 deletions
|
|
@ -2207,7 +2207,6 @@ void init_single_mario(struct MarioState* m) {
|
|||
|
||||
u16 playerIndex = m->playerIndex;
|
||||
struct SpawnInfo* spawnInfo = &gPlayerSpawnInfos[playerIndex];
|
||||
unused80339F10 = 0;
|
||||
|
||||
m->freeze = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
#include "macros.h"
|
||||
#include "types.h"
|
||||
|
||||
extern u16 gLocalBubbleCounter;
|
||||
struct WallCollisionData;
|
||||
|
||||
/* |description|
|
||||
|
|
|
|||
|
|
@ -1064,7 +1064,7 @@ s32 act_bubbled(struct MarioState* m) {
|
|||
s32 pitchToPlayer = obj_pitch_to_object(m->marioObj, target);
|
||||
s32 distanceToPlayer = dist_between_objects(m->marioObj, target);
|
||||
|
||||
// trigger warp if all are bubbled
|
||||
// trigger warp if all are bubbled long enough
|
||||
if (m->playerIndex == 0) {
|
||||
u8 allInBubble = TRUE;
|
||||
for (s32 i = 0; i < MAX_PLAYERS; i++) {
|
||||
|
|
@ -1076,9 +1076,10 @@ s32 act_bubbled(struct MarioState* m) {
|
|||
}
|
||||
}
|
||||
if (allInBubble) {
|
||||
level_trigger_warp(m, WARP_OP_DEATH);
|
||||
return FALSE;
|
||||
}
|
||||
if (m->actionState++ == 60) {
|
||||
level_trigger_warp(m, WARP_OP_DEATH);
|
||||
}
|
||||
} else { m->actionState = 0; }
|
||||
}
|
||||
|
||||
// create bubble
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue