mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-09-10 03:42:00 -04:00
Decompile func0f187838
This commit is contained in:
+12
-15
@@ -61,21 +61,18 @@ f32 func0f187770(u8 value)
|
||||
return tmp * tmp * 3 - 2;
|
||||
}
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel func0f187838
|
||||
/* f187838: 00001025 */ or $v0,$zero,$zero
|
||||
/* f18783c: 00801825 */ or $v1,$a0,$zero
|
||||
/* f187840: 2405000c */ addiu $a1,$zero,0xc
|
||||
.L0f187844:
|
||||
/* f187844: 24420001 */ addiu $v0,$v0,0x1
|
||||
/* f187848: a4600024 */ sh $zero,0x24($v1)
|
||||
/* f18784c: 1445fffd */ bne $v0,$a1,.L0f187844
|
||||
/* f187850: 24630002 */ addiu $v1,$v1,0x2
|
||||
/* f187854: a480003c */ sh $zero,0x3c($a0)
|
||||
/* f187858: a480003e */ sh $zero,0x3e($a0)
|
||||
/* f18785c: 03e00008 */ jr $ra
|
||||
/* f187860: a4800040 */ sh $zero,0x40($a0)
|
||||
);
|
||||
void func0f187838(struct mpchr *mpchr)
|
||||
{
|
||||
s32 i = 0;
|
||||
|
||||
while (i < ARRAYCOUNT(mpchr->killcounts)) {
|
||||
mpchr->killcounts[i++] = 0;
|
||||
}
|
||||
|
||||
mpchr->numdeaths = 0;
|
||||
mpchr->unk3e = 0;
|
||||
mpchr->unk40 = 0;
|
||||
}
|
||||
|
||||
void mpStartMatch(void)
|
||||
{
|
||||
|
||||
+2
-1
@@ -4415,7 +4415,8 @@ struct mpchr {
|
||||
/*0x24*/ s16 killcounts[12]; // per player - each index is a chrslot
|
||||
/*0x3c*/ s16 numdeaths;
|
||||
/*0x3e*/ s16 unk3e;
|
||||
/*0x40*/ u32 unk40;
|
||||
/*0x40*/ s16 unk40;
|
||||
/*0x42*/ u16 unk42;
|
||||
/*0x44*/ u8 controlmode;
|
||||
/*0x45*/ s8 contpad1;
|
||||
/*0x46*/ s8 contpad2;
|
||||
|
||||
Reference in New Issue
Block a user