diff --git a/src/game/chr/chraicommands.c b/src/game/chr/chraicommands.c index 2895cb301..4678faae8 100644 --- a/src/game/chr/chraicommands.c +++ b/src/game/chr/chraicommands.c @@ -5260,7 +5260,7 @@ bool aiIfAlertnessLessThanRandom(void) * @cmd 0092 */ GLOBAL_ASM( -glabel ai0092 +glabel aiSetHearDistance /* f0537d4: 3c04800a */ lui $a0,0x800a /* f0537d8: 24849fc0 */ addiu $a0,$a0,-24640 /* f0537dc: 8c8e0434 */ lw $t6,0x434($a0) @@ -5284,6 +5284,19 @@ glabel ai0092 /* f053824: ac8c0438 */ sw $t4,0x438($a0) ); +// Commented because it uses different float registers. Matches otherwise. +//bool aiSetHearDistance(void) +//{ +// u8 *cmd = g_Vars.ailist + g_Vars.aioffset; +// float distance = cmd[3] | (cmd[2] << 8); +// distance /= 1000; +// g_Vars.chrdata->hearingscale = distance; +// +// g_Vars.aioffset += 4; +// +// return false; +//} + /** * @cmd 0093 */ diff --git a/src/include/game/chr/chraicommands.h b/src/include/game/chr/chraicommands.h index 67ca07b7d..f75e47b3f 100644 --- a/src/include/game/chr/chraicommands.h +++ b/src/include/game/chr/chraicommands.h @@ -148,7 +148,7 @@ /*0x008f*/ bool aiIfChrAlertnessLessThan(void); /*0x0090*/ bool aiIfAlertnessLessThanRandom(void); /*0x0091*/ bool ai0091(void); -/*0x0092*/ bool ai0092(void); +/*0x0092*/ bool aiSetHearDistance(void); /*0x0093*/ bool ai0093(void); /*0x0094*/ bool ai0094(void); /*0x0095*/ bool ai0095(void); diff --git a/src/setup/setup_000000.c b/src/setup/setup_000000.c index 6531c3637..7cf365dd7 100644 --- a/src/setup/setup_000000.c +++ b/src/setup/setup_000000.c @@ -14099,7 +14099,7 @@ bool (*command_pointers[])(void) = { /*0x008f*/ aiIfChrAlertnessLessThan, /*0x0090*/ aiIfAlertnessLessThanRandom, /*0x0091*/ ai0091, - /*0x0092*/ ai0092, + /*0x0092*/ aiSetHearDistance, /*0x0093*/ ai0093, /*0x0094*/ ai0094, /*0x0095*/ ai0095,