diff options
author | Treeki <treeki@gmail.com> | 2012-02-01 03:01:37 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-02-01 03:01:37 +0100 |
commit | 9cfc44100d013c8a93b314eb7acf0a9a5d149229 (patch) | |
tree | fe5430ceb8957a42a3aaa30e66274c69ce62a62b | |
parent | 2e779b6f400200438b7acb072babad9efcf0c8fc (diff) | |
download | kamek-9cfc44100d013c8a93b314eb7acf0a9a5d149229.tar.gz kamek-9cfc44100d013c8a93b314eb7acf0a9a5d149229.zip |
hopefully fixes Pipe Spawner
-rw-r--r-- | growup.yaml | 4 | ||||
-rwxr-xr-x | src/growup.s | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/growup.yaml b/growup.yaml index 9e5caeb..0fe73ed 100644 --- a/growup.yaml +++ b/growup.yaml @@ -152,7 +152,7 @@ hooks: type: branch_insn branch_type: bl src_addr_pal: 0x80ABB6D0 - target_func: 'InheritSettings_D' + target_func: 'InheritSettings_D_r31' - name: FixingPipeSpawnerBobomb @@ -355,4 +355,4 @@ hooks: # 809EA268 - Broozer physics struct # 80ABB6E0 - Pipe Generator -#80AB7910
\ No newline at end of file +#80AB7910 diff --git a/src/growup.s b/src/growup.s index d7923ac..4ec3a6b 100755 --- a/src/growup.s +++ b/src/growup.s @@ -919,6 +919,15 @@ InheritSettings_D: blr +.global InheritSettings_D_r31 +InheritSettings_D: + + lwz r0, 4(r31) + andis. r0, r0, 0xFFF0 + or r4, r4, r0 + blr + + .global AlwaysVisible AlwaysVisible: |