From 38d26dfb0f71a9cdccf657c7ec16d0b224991cc7 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 2 Nov 2012 22:44:17 +0100 Subject: failed/unfinished attempt at fixing gabon rock with hammers --- src/poweruphax.S | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'src') diff --git a/src/poweruphax.S b/src/poweruphax.S index 43480c3..a4c7f14 100644 --- a/src/poweruphax.S +++ b/src/poweruphax.S @@ -838,6 +838,36 @@ Wm2dPlayerDrawHS: .extern draw__21dHammerSuitRenderer_cFv .extern draw__21dPlayerModelHandler_cFv + + + +.global HammerGabonRock +HammerGabonRock: + # r27 = apOther + # r28 = apThis + # r29 = objOther + # r31 = objThis + lbz r0, 0x2D(r27) + cmpwi r0, 19 + bne hgrExit + + + + lbz r0, 0xA1(r28) + ori r0, r0, 2 + stb r0, 0xA1(r28) +hgrExit: + lwz r27, 0x2C(r1) + lwz r28, 0x30(r1) + lwz r29, 0x34(r1) + lwz r30, 0x38(r1) + lwz r31, 0x3C(r1) + lwz r0, 0x44(r1) + mtlr r0 + addi r1, r1, 0x40 + blr + + .data PowerupSounds: -- cgit v1.2.3