added fall damage sound toggle

This commit is contained in:
Reonu
2021-06-27 13:06:18 +01:00
parent 7fbdb2435f
commit 89cb118667
2 changed files with 4 additions and 1 deletions

View File

@@ -71,6 +71,8 @@
#define JUMP_KICK_FIX
// Disables fall damage
#define NO_FALL_DAMAGE
// Disables the scream that mario makes when falling off a great height (this is separate from actual fall damage)
//#define NO_FALL_DAMAGE_SOUND
// Number of coins to spawn the "100 coin" star. If you remove the define altogether, then there won't be a 100 coin star at all.
#define X_COIN_STAR 100
// Stars don't kick you out of the level

View File

@@ -2063,8 +2063,9 @@ s32 mario_execute_airborne_action(struct MarioState *m) {
if (check_common_airborne_cancels(m)) {
return TRUE;
}
#ifndef NO_FALL_DAMAGE_SOUND
play_far_fall_sound(m);
#endif
/* clang-format off */
switch (m->action) {