Update mario_actions_moving.c

This commit is contained in:
Martin Pham 2020-08-02 18:11:50 +02:00 committed by GitHub
parent 6e5464a9a0
commit f66c00c555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1235,11 +1235,11 @@ s32 act_riding_shell_ground(struct MarioState *m) {
break;
case GROUND_STEP_HIT_WALL:
mario_stop_riding_object(m);
if (!Cheats.EnableCheats || !Cheats.ForeverShell) { mario_stop_riding_object(m); }
play_sound(m->flags & MARIO_METAL_CAP ? SOUND_ACTION_METAL_BONK : SOUND_ACTION_BONK,
m->marioObj->header.gfx.cameraToObject);
m->particleFlags |= PARTICLE_VERTICAL_STAR;
set_mario_action(m, ACT_BACKWARD_GROUND_KB, 0);
if (!Cheats.EnableCheats || !Cheats.ForeverShell) { set_mario_action(m, ACT_BACKWARD_GROUND_KB, 0); }
break;
}