diff options
-rw-r--r-- | spritetex.yaml | 5 | ||||
-rwxr-xr-x | src/spritetex.S | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/spritetex.yaml b/spritetex.yaml index 2beb4b6..c03afa4 100644 --- a/spritetex.yaml +++ b/spritetex.yaml @@ -121,6 +121,11 @@ hooks: src_addr_pal: 0x80AB2C34 target_func: 'TEX_SpikeTop' + - name: TogeMetPowFix + type: add_func_pointer + src_addr_pal: 0x80B0B9DC + target_func: 'TogeMetPowFix' + - name: TEX_SpinyShell type: branch_insn diff --git a/src/spritetex.S b/src/spritetex.S index 7fa09ba..2831b31 100755 --- a/src/spritetex.S +++ b/src/spritetex.S @@ -1598,6 +1598,13 @@ BigMetPowFix: beqlr b OriginalPowBlockActivated +.global TogeMetPowFix +TogeMetPowFix: + lwz r5, 4(r3) + extrwi r5, r5, 4,4 + cmpwi r5, 5 + beqlr + b OriginalPowBlockActivated .data BomombDir: |