Longer poles patch is now toggleable in config.h

This commit is contained in:
Reonu
2021-05-26 15:13:36 +01:00
parent dbea1f734b
commit 9d2ec5d911
2 changed files with 8 additions and 2 deletions

View File

@@ -53,6 +53,8 @@
#define PEACH_SKIP
// Remove course specific camera processing
#define CAMERA_FIX
// Increase the maximum pone lenght (it will treat bparam1 and bparam2 as a single value)
#define LONGER_POLES
// Uncomment this if you want to skip the title screen (Super Mario 64 logo)
//#define SKIP_TITLE_SCREEN
// Uncomment this if you want to keep the mario head and not skip it

View File

@@ -1,3 +1,4 @@
#include "config.h"
/**
* Behaviors for bhvPoleGrabbing and bhvGiantPole.
*
@@ -17,9 +18,12 @@ void bhv_pole_init(void) {
* `spawn_objects_from_info`.
*/
// POLE "FIX": The game will read bparam1 and bparam2 together as a single value,
// so you can have a snake eater pole
#ifdef LONGER_POLES
o->hitboxHeight = ((o->oBehParams & 0xFFFF0000) >> 16) * 10;
#else
s32 tenthHitboxHeight = o->oBehParams >> 0x10 & 0xFF;
o->hitboxHeight = tenthHitboxHeight * 10;
#endif
}
/**