summaryrefslogtreecommitdiff
path: root/src/randomcrap.S
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-06-01 23:38:33 +0200
committerTreeki <treeki@gmail.com>2013-06-01 23:38:33 +0200
commit59224f4e86b57638965422808878332fb775c00a (patch)
treee2ecf22ab635533e2598cf89cd39a21e9073237a /src/randomcrap.S
parent4d4a226cfd5bd62da04ef70b623c2f568f7d5b64 (diff)
downloadkamek-59224f4e86b57638965422808878332fb775c00a.tar.gz
kamek-59224f4e86b57638965422808878332fb775c00a.zip
thwomp changes
Diffstat (limited to 'src/randomcrap.S')
-rw-r--r--src/randomcrap.S24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/randomcrap.S b/src/randomcrap.S
index b2d34ce..18dffa5 100644
--- a/src/randomcrap.S
+++ b/src/randomcrap.S
@@ -1,5 +1,29 @@
.text
+.global ThwompNewAutoDestruction
+ThwompNewAutoDestruction:
+ lfs f1, 0xB0(r31)
+ lis r3, ThwompDestroyAt@h
+ ori r3, r3, ThwompDestroyAt@l
+ lfs f2, 0(r3)
+ fcmpo cr0, f1, f2
+ bgt dontDestroyMe
+ mr r3, r31
+.extern Delete__13dStageActor_cFUc
+ lbz r4, 0x390(r3)
+ bl Delete__13dStageActor_cFUc
+dontDestroyMe:
+ li r3, 1
+ lwz r31, 0xC(r1)
+ lwz r0, 0x14(r1)
+ mtlr r0
+ addi r1, r1, 0x10
+ blr
+
+.data
+.align 4
+ThwompDestroyAt: .float -7533.0
+.text
.global TitleScreenFucker
.extern RESTART_CRSIN_LevelStartStruct
.extern SaveFileBuffer