added toggle to disable fall damage

This commit is contained in:
Reonu
2021-06-27 12:57:07 +01:00
parent e03f938f12
commit 027ffdba95
2 changed files with 4 additions and 1 deletions

View File

@@ -69,6 +69,8 @@
#define NO_FALSE_LEDGEGRABS
// Allows Mario to jump kick on steep surfaces that are set to be non slippery, instead of being forced to dive
#define JUMP_KICK_FIX
// Disables fall damage
#define NO_FALL_DAMAGE
// Uncomment this if you want global star IDs (useful for creating an open world hack ala MVC)
//#define GLOBAL_STAR_IDS
// Uncomment this if you want to skip the title screen (Super Mario 64 logo)

View File

@@ -59,6 +59,7 @@ s32 lava_boost_on_wall(struct MarioState *m) {
}
s32 check_fall_damage(struct MarioState *m, u32 hardFallAction) {
#ifndef NO_FALL_DAMAGE
f32 fallHeight;
f32 damageHeight;
@@ -97,7 +98,7 @@ s32 check_fall_damage(struct MarioState *m, u32 hardFallAction) {
}
}
}
#endif
return FALSE;
}