Decompile func0f0c3ad0

This commit is contained in:
Ryan Dwyer 2020-03-01 22:50:00 +10:00
parent 1b96b5b765
commit 74c0cefc19
3 changed files with 6 additions and 14 deletions

View File

@ -289,18 +289,10 @@ glabel currentPlayerWalkInit
/* f0c3acc: 00000000 */ sll $zero,$zero,0x0
);
GLOBAL_ASM(
glabel func0f0c3ad0
/* f0c3ad0: 44842000 */ mtc1 $a0,$f4
/* f0c3ad4: 3c014296 */ lui $at,0x4296
/* f0c3ad8: 44814000 */ mtc1 $at,$f8
/* f0c3adc: 468021a0 */ cvt.s.w $f6,$f4
/* f0c3ae0: 3c0e800a */ lui $t6,0x800a
/* f0c3ae4: 8dcea244 */ lw $t6,-0x5dbc($t6)
/* f0c3ae8: 46083282 */ mul.s $f10,$f6,$f8
/* f0c3aec: 03e00008 */ jr $ra
/* f0c3af0: e5ca00a0 */ swc1 $f10,0xa0($t6)
);
void func0f0c3ad0(s32 value)
{
g_Vars.currentplayer->unk00a0 = value * 75.0f;
}
GLOBAL_ASM(
glabel func0f0c3af4

View File

@ -4,7 +4,7 @@
#include "types.h"
u32 currentPlayerWalkInit(void);
u32 func0f0c3ad0(void);
void func0f0c3ad0(s32 value);
u32 func0f0c3af4(void);
u32 func0f0c3b38(void);
u32 func0f0c3c8c(void);

View File

@ -1058,7 +1058,7 @@ struct player {
/*0x0094*/ u32 unk0094;
/*0x0098*/ u32 unk0098;
/*0x009c*/ u32 unk009c;
/*0x00a0*/ u32 unk00a0;
/*0x00a0*/ f32 unk00a0;
/*0x00a4*/ u32 unk00a4;
/*0x00a8*/ u32 unk00a8;
/*0x00ac*/ s32 crouchpos;