summaryrefslogtreecommitdiff
path: root/src/poweruphax.S
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/poweruphax.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/poweruphax.S b/src/poweruphax.S
index cf6ecb6..22b34a4 100644
--- a/src/poweruphax.S
+++ b/src/poweruphax.S
@@ -615,6 +615,9 @@ gotHammerStatus:
.extern continueToadPowerupSet
.global ToadPowerupFix
ToadPowerupFix:
+ cmpwi r4, 3
+ beq isHammerForToad
+
lis r8, PowerupTextures@h
ori r8, r8, PowerupTextures@l
slwi r9, r4, 2
@@ -622,6 +625,13 @@ ToadPowerupFix:
fadds f31, f31, f1
b continueToadPowerupSet
+isHammerForToad:
+ lis r8, ToadTextures@h
+ ori r8, r8, ToadTextures@l
+ slwi r9, r0, 2
+ lfsx f31, f31, f1
+ b continueToadPowerupSet
+
.data
@@ -689,6 +699,9 @@ PowerupTextures:
.float 1.0
.float 2.0
.float 3.0
+ToadTextures:
+ .long 0xDEADBEEF, 0xDEADBEEF
+ .float 7.0, 8.0, 6.0
.global BrosArcFileName
BrosArcFileName: