Added option to disable BLJs

This commit is contained in:
Reonu
2021-07-01 10:28:34 +01:00
parent 8abd187c6e
commit 8c9e2a48ef
3 changed files with 6 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ This is a fork of the ultrasm64 repo by CrashOveride which includes the followin
- No false ledgegrabs fix *
- Jump kick fix *
- 46 degree wallkicks *
- Possibility of disabling BLJs *
- Instant Input patch by Wiseguy (Removes all input lag caused by good emulators and plugins)
- pole fix
- Hanging fix (mario can grab hangable ceilings from any state, instead of only jump or double jump) *

View File

@@ -74,6 +74,8 @@
#define HANGING_FIX
// 46 degree walkicks
//#define WALLKICKS_46_DEGREES
// Disable BLJs and crush SimpleFlips's dreams
//#define DISABLE_BLJ
// 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)

View File

@@ -13,6 +13,8 @@
#include "behavior_data.h"
#include "rumble_init.h"
#include "config.h"
struct LandingAction {
s16 numFrames;
s16 unk02;
@@ -1845,7 +1847,7 @@ s32 act_hold_freefall_land(struct MarioState *m) {
}
s32 act_long_jump_land(struct MarioState *m) {
#ifdef VERSION_SH
#if defined (VERSION_SH) || defined(DISABLE_BLJ)
// BLJ (Backwards Long Jump) speed build up fix, crushing SimpleFlips's dreams since July 1997
if (m->forwardVel < 0.0f) {
m->forwardVel = 0.0f;