mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-12-18 05:52:40 +00:00
fix bubba eaten action not being invisible
This commit is contained in:
parent
681ea52f4b
commit
5a9f4b10bd
1 changed files with 4 additions and 6 deletions
|
|
@ -943,11 +943,9 @@ s32 act_eaten_by_bubba(struct MarioState *m) {
|
||||||
if (!m) { return 0; }
|
if (!m) { return 0; }
|
||||||
play_character_sound_if_no_flag(m, CHAR_SOUND_DYING, MARIO_ACTION_SOUND_PLAYED);
|
play_character_sound_if_no_flag(m, CHAR_SOUND_DYING, MARIO_ACTION_SOUND_PLAYED);
|
||||||
set_character_animation(m, CHAR_ANIM_A_POSE);
|
set_character_animation(m, CHAR_ANIM_A_POSE);
|
||||||
|
m->marioObj->header.gfx.node.flags &= ~GRAPH_RENDER_ACTIVE;
|
||||||
if (m->actionTimer++ == 60) {
|
if (m->actionTimer++ == 60) {
|
||||||
if (m->playerIndex != 0) {
|
if (m->playerIndex == 0) {
|
||||||
// do nothing
|
|
||||||
} else {
|
|
||||||
bool allowDeath = true;
|
bool allowDeath = true;
|
||||||
smlua_call_event_hooks_mario_param_ret_bool(HOOK_ON_DEATH, m, &allowDeath);
|
smlua_call_event_hooks_mario_param_ret_bool(HOOK_ON_DEATH, m, &allowDeath);
|
||||||
if (!allowDeath) { return FALSE; }
|
if (!allowDeath) { return FALSE; }
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue