Longer poles patch is now toggleable in config.h

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

No files matched your search

+6 -2
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
}
/**