Decompile heliSetHealth

This commit is contained in:
Ryan Dwyer 2019-12-29 17:23:55 +10:00
parent deb9bb6483
commit 90df2a2910
3 changed files with 6 additions and 8 deletions

View File

@ -4426,7 +4426,7 @@ glabel ai0096
.L0f053a04:
/* f053a04: 44caf800 */ ctc1 $t2,$31
/* f053a08: 30abffff */ andi $t3,$a1,0xffff
/* f053a0c: 0fc1ec56 */ jal func0f07b158
/* f053a0c: 0fc1ec56 */ jal heliSetMaxDamage
/* f053a10: 01602825 */ or $a1,$t3,$zero
/* f053a14: 10000021 */ beqz $zero,.L0f053a9c
/* f053a18: 8e0d0438 */ lw $t5,0x438($s0)

View File

@ -24847,12 +24847,10 @@ glabel heliGetTimer
/* f07b154: 00000000 */ sll $zero,$zero,0x0
);
GLOBAL_ASM(
glabel func0f07b158
/* f07b158: afa50004 */ sw $a1,0x4($sp)
/* f07b15c: 03e00008 */ jr $ra
/* f07b160: a485004e */ sh $a1,0x4e($a0)
);
void heliSetMaxDamage(struct heliobj *heli, s16 health)
{
heli->base.maxdamage = health;
}
GLOBAL_ASM(
glabel func0f07b164

View File

@ -170,7 +170,7 @@ void heliTryStop(struct heliobj *heli);
bool heliSetField90(struct defaultobj *obj, u32 value);
u32 heliRestartTimer(struct heliobj *heli);
f32 heliGetTimer(struct heliobj *heli);
u32 func0f07b158(void);
void heliSetMaxDamage(struct heliobj *heli, s16 health);
u32 func0f07b164(void);
u32 heliFireRocket(struct heliobj *heli, u32 arg1);
u32 func0f07b3f0(void);