mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-05-04 16:02:05 +00:00
Allow bubbled players to go through elevators
This commit is contained in:
parent
196ac547ef
commit
c50794773c
1 changed files with 7 additions and 0 deletions
|
|
@ -155,4 +155,11 @@ struct SpawnParticlesInfo D_8032F3FC = { 0, 5, MODEL_WHITE_PARTICLE_DL, 0,
|
||||||
|
|
||||||
void bhv_elevator_loop(void) {
|
void bhv_elevator_loop(void) {
|
||||||
cur_obj_call_action_function(sElevatorActions);
|
cur_obj_call_action_function(sElevatorActions);
|
||||||
|
|
||||||
|
// allow bubbled players to pass through
|
||||||
|
if (gMarioStates[0].action == ACT_BUBBLED) {
|
||||||
|
cur_obj_become_intangible();
|
||||||
|
} else {
|
||||||
|
cur_obj_become_tangible();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue