diff --git a/src/game/chr/chraicommands.c b/src/game/chr/chraicommands.c index cb86ba413..793273ee9 100644 --- a/src/game/chr/chraicommands.c +++ b/src/game/chr/chraicommands.c @@ -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) diff --git a/src/game/game_066310.c b/src/game/game_066310.c index 9ae93774d..a3e1cf14b 100644 --- a/src/game/game_066310.c +++ b/src/game/game_066310.c @@ -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 diff --git a/src/include/game/game_066310.h b/src/include/game/game_066310.h index a9491b6b4..f21dddb86 100644 --- a/src/include/game/game_066310.h +++ b/src/include/game/game_066310.h @@ -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);