Added no false ledgegrabs tweak

This commit is contained in:
Reonu committed 2021-06-12 09:43:42 +01:00
1 parent 856bff7726
commit 73dc2a6683
2 files changed
+4 -2

No files matched your search

+2
View File
@@ -65,6 +65,8 @@
#define DISABLE_AA
// Fix instant warp offset not working when warping across different areas
#define INSTANT_WARP_OFFSET_FIX
// Allows Mario to ledgegrab sloped floors
#define NO_FALSE_LEDGEGRABS
// 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)
+2 -2
View File
@@ -550,11 +550,11 @@ s32 act_ledge_grab(struct MarioState *m) {
if (m->actionTimer < 10) {
m->actionTimer++;
}
#ifndef NO_FALSE_LEDGEGRABS
if (m->floor->normal.y < 0.9063078f) {
return let_go_of_ledge(m);
}
#endif
if (m->input & (INPUT_Z_PRESSED | INPUT_OFF_FLOOR)) {
return let_go_of_ledge(m);
}