diff options
Diffstat (limited to 'src/spritetex.S')
-rwxr-xr-x | src/spritetex.S | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/spritetex.S b/src/spritetex.S index fa4d6e8..431d29f 100755 --- a/src/spritetex.S +++ b/src/spritetex.S @@ -403,6 +403,15 @@ TEX_Manta: andi. r5, r5, 0xF b GetTexFilenameForR5 +.global TEX_MantaInherit +TEX_MantaInherit: + lwz r5, 4(r28) + andis. r5, r5, 0x0F00 + + or r5, r5, r0 + oris r5, r5, 0x8000 + blr + .global TEX_Parabeetle TEX_Parabeetle: @@ -1241,11 +1250,9 @@ FlakeyStardust: .global TEX_Flakes TEX_Flakes: - lwz r5, 4(r30) - srwi r5, r5, 24 - andi. r5, r5, 0xF - b GetTexFilenameForR5 - + lis r5, snowstring@h + ori r5, r5, snowstring@l + blr .data @@ -1258,6 +1265,9 @@ TexFilenameBuffer: TexFormatString: .string "g3d/t%02d.brres" +snowstring: + .string "g3d/t00.brres" + ConvertFloat: .word 0x43300000,0x0,0x43300000,0x80000000 |