diff --git a/README.md b/README.md index 1ef11bcd..849a743f 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Fork of the ultrasm64 repo by CrashOveride which includes the following commonly - Widescreen (16:9) support toggleable by pressing `L` in the pause menu. - If you don't want this, you can disable it by removing `#define wide` in `ingame_menu.c` - Removed course-specific camera processing +- Increased maximum pole lenght (The game will read bparam1 and bparam2 together as a single value, so you can have a Snake Eater pole) It also uncringes the way that apply_patch.sh works, and removes the black border. diff --git a/src/game/behaviors/pole.inc.c b/src/game/behaviors/pole.inc.c index d727751c..0938a99a 100644 --- a/src/game/behaviors/pole.inc.c +++ b/src/game/behaviors/pole.inc.c @@ -16,8 +16,10 @@ void bhv_pole_init(void) { * This is equivalent to using `o->oBehParams2ndByte` according to * `spawn_objects_from_info`. */ - s32 tenthHitboxHeight = o->oBehParams >> 0x10 & 0xFF; - o->hitboxHeight = tenthHitboxHeight * 10; + + // POLE "FIX": The game will read bparam1 and bparam2 together as a single value, + // so you can have a snake eater pole + o->hitboxHeight = ((o->oBehParams & 0xFFFF0000) >> 16) * 10; } /**