Added extra pole length patch

This commit is contained in:
Reonu
2021-05-24 22:19:49 +01:00
parent 5097e6f666
commit 8f8b24764a
2 changed files with 5 additions and 2 deletions

View File

@@ -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.

View File

@@ -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;
}
/**