Small fix

This commit is contained in:
Arceveti committed 2021-09-20 17:25:24 -07:00
1 parent eedca61a73
commit 022679b8b7
2 files changed
+5 -5

No files matched your search

@@ -50,7 +50,7 @@ s32 lll_octagonal_mesh_move(struct LllOctagonalMeshAction *actionTable, s32 acti
o->oMoveAngleYaw = action->moveAngle;
o->oForwardVel = action->forwardVel / 100.0f;
if (cur_obj_is_mario_on_platform()) {
actionOffset += 4;
actionOffset++;
o->oTimer = 0;
}
break;
@@ -58,14 +58,14 @@ s32 lll_octagonal_mesh_move(struct LllOctagonalMeshAction *actionTable, s32 acti
o->oMoveAngleYaw = action->moveAngle;
o->oForwardVel = action->forwardVel / 100.0f;
if (o->oTimer > action->time) {
actionOffset += 4;
actionOffset++;
o->oTimer = 0;
}
break;
case LLL_OCTMESH_CHANGE_DIR:
approach_f32_signed(&o->oForwardVel, action->moveAngle / 100.0f, action->forwardVel / 100.0f);
if (o->oTimer > action->time) {
actionOffset += 4;
actionOffset++;
o->oTimer = 0;
}
break;
+2 -2
View File
@@ -1691,7 +1691,7 @@ UNUSED static void debug_update_mario_cap(u16 button, s32 flags, u16 capTimer, u
}
#if ENABLE_RUMBLE
void func_sh_8025574C(void) {
void queue_rumble_particles(void) {
if (gMarioState->particleFlags & PARTICLE_HORIZONTAL_STAR) {
queue_rumble_data(5, 80);
} else if (gMarioState->particleFlags & PARTICLE_VERTICAL_STAR) {
@@ -1787,7 +1787,7 @@ s32 execute_mario_action(UNUSED struct Object *o) {
play_infinite_stairs_music();
gMarioState->marioObj->oInteractStatus = 0;
#if ENABLE_RUMBLE
func_sh_8025574C();
queue_rumble_particles();
#endif
return gMarioState->particleFlags;