Fixed exclamation box double item spawning when traffic is bad
This commit is contained in:
parent
31904c36bf
commit
90d9e255e4
|
@ -71,14 +71,16 @@ void exclamation_box_act_2(void) {
|
||||||
o->oPosY = o->oHomeY;
|
o->oPosY = o->oHomeY;
|
||||||
o->oGraphYOffset = 0.0f;
|
o->oGraphYOffset = 0.0f;
|
||||||
}
|
}
|
||||||
if (o->oExclamationBoxForce || o->oExclamationBoxUnkFC == 0x4000 || cur_obj_was_attacked_or_ground_pounded()) {
|
if (o->oExclamationBoxForce || nearest_mario_state_to_object(o) == &gMarioStates[0]) {
|
||||||
cur_obj_become_intangible();
|
if (o->oExclamationBoxForce || o->oExclamationBoxUnkFC == 0x4000 || cur_obj_was_attacked_or_ground_pounded()) {
|
||||||
o->oExclamationBoxUnkFC = 0x4000;
|
cur_obj_become_intangible();
|
||||||
o->oVelY = 30.0f;
|
o->oExclamationBoxUnkFC = 0x4000;
|
||||||
o->oGravity = -8.0f;
|
o->oVelY = 30.0f;
|
||||||
o->oFloorHeight = o->oPosY;
|
o->oGravity = -8.0f;
|
||||||
o->oAction = 3;
|
o->oFloorHeight = o->oPosY;
|
||||||
queue_rumble_data(5, 80);
|
o->oAction = 3;
|
||||||
|
queue_rumble_data(5, 80);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
load_object_collision_model();
|
load_object_collision_model();
|
||||||
}
|
}
|
||||||
|
@ -145,6 +147,7 @@ void exclamation_box_act_4(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void exclamation_box_act_5(void) {
|
void exclamation_box_act_5(void) {
|
||||||
|
o->oExclamationBoxForce = FALSE;
|
||||||
if (o->oTimer > 300)
|
if (o->oTimer > 300)
|
||||||
o->oAction = 2;
|
o->oAction = 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue