added jump kick fix

This commit is contained in:
Reonu
2021-06-21 17:35:28 +01:00
parent 2ddd8ddf89
commit 82b35a0036
2 changed files with 7 additions and 0 deletions

View File

@@ -67,6 +67,8 @@
#define INSTANT_WARP_OFFSET_FIX
// Allows Mario to ledgegrab sloped floors
#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
// 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

@@ -639,6 +639,11 @@ s32 mario_floor_is_steep(struct MarioState *m) {
f32 normY;
s32 result = FALSE;
#ifdef JUMP_KICK_FIX
if (m->floor->type == SURFACE_NOT_SLIPPERY)
return FALSE;
#endif
// Interestingly, this function does not check for the
// slide terrain type. This means that steep behavior persists for
// non-slippery and slippery surfaces.