diff --git a/src/game/game_187770.c b/src/game/game_187770.c index cb6cdb83f..c0772bcd1 100644 --- a/src/game/game_187770.c +++ b/src/game/game_187770.c @@ -12643,23 +12643,12 @@ void func0f192438(struct chrdata *chr, struct prop *prop) chr->unk2d4->unkd8 = 1; } -GLOBAL_ASM( -glabel func0f192474 -/* f192474: 8c8e02d4 */ lw $t6,0x2d4($a0) -/* f192478: 3c0f800a */ lui $t7,0x800a -/* f19247c: 24010048 */ addiu $at,$zero,0x48 -/* f192480: a1c00079 */ sb $zero,0x79($t6) -/* f192484: 8defa2f8 */ lw $t7,-0x5d08($t7) -/* f192488: 8c8802d4 */ lw $t0,0x2d4($a0) -/* f19248c: 24090001 */ addiu $t1,$zero,0x1 -/* f192490: 00afc023 */ subu $t8,$a1,$t7 -/* f192494: 0301001a */ div $zero,$t8,$at -/* f192498: 0000c812 */ mflo $t9 -/* f19249c: ad1900d4 */ sw $t9,0xd4($t0) -/* f1924a0: 8c8a02d4 */ lw $t2,0x2d4($a0) -/* f1924a4: 03e00008 */ jr $ra -/* f1924a8: ad4900d8 */ sw $t1,0xd8($t2) -); +void func0f192474(struct chrdata *chr, struct prop *prop) +{ + chr->unk2d4->unk79 = 0; + chr->unk2d4->unkd4_propindex = prop - g_Vars.props; + chr->unk2d4->unkd8 = 1; +} GLOBAL_ASM( glabel func0f1924ac diff --git a/src/include/game/game_187770.h b/src/include/game/game_187770.h index 4a81f8f1e..ee1c54a24 100644 --- a/src/include/game/game_187770.h +++ b/src/include/game/game_187770.h @@ -140,7 +140,7 @@ u32 func0f191fa4(void); u32 func0f1921f8(void); char *mpGetBotCommandName(s32 command); void func0f192438(struct chrdata *chr, struct prop *prop); -u32 func0f192474(void); +void func0f192474(struct chrdata *chr, struct prop *prop); u32 func0f1924ac(void); u32 func0f1924e8(void); u32 func0f19257c(void); diff --git a/src/include/types.h b/src/include/types.h index 2328d38db..3ae8c13eb 100644 --- a/src/include/types.h +++ b/src/include/types.h @@ -213,7 +213,7 @@ struct chr2d4 { /*0xc8*/ u32 unkc8; /*0xcc*/ u32 unkcc; /*0xd0*/ u32 unkd0; - /*0xd4*/ u32 unkd4; + /*0xd4*/ u32 unkd4_propindex; /*0xd8*/ s32 unkd8; /*0x0dc*/ u32 unk0dc; /*0x0e0*/ u32 unk0e0;