Longer poles patch is now toggleable in config.h
This commit is contained in:
1 parent
dbea1f734b
commit
9d2ec5d911
2 files changed
+8
-2
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user