diff --git a/src/game/chr/chraicommands.c b/src/game/chr/chraicommands.c index e3a697caa..6832e9541 100644 --- a/src/game/chr/chraicommands.c +++ b/src/game/chr/chraicommands.c @@ -7,6 +7,7 @@ #include "game/game_0b28d0.h" #include "game/game_165670.h" #include "game/game_16cfa0.h" +#include "game/game_19c990.h" #include "setup/setup_000000.h" #include "setup/setup_0160b0.h" #include "setup/setup_020df0.h" @@ -14137,6 +14138,21 @@ glabel ai01bd /* f05ebb4: 00000000 */ sll $zero,$zero,0x0 ); +// Mismatch due to different temporary registers +//bool ai01bd(void) +//{ +// u8 *cmd = g_Vars.ailist + g_Vars.aioffset; +// s32 *value = func0f1a1818(); +// +// if (*value * 16 < 0) { +// g_Vars.aioffset = chraiGoToLabel(g_Vars.ailist, g_Vars.aioffset, cmd[2]); +// } else { +// g_Vars.aioffset += 3; +// } +// +// return false; +//} + /** * @cmd 01be */ diff --git a/src/include/game/game_19c990.h b/src/include/game/game_19c990.h index 83b5d9630..131467791 100644 --- a/src/include/game/game_19c990.h +++ b/src/include/game/game_19c990.h @@ -74,7 +74,7 @@ u32 func0f1a16a4(void); u32 func0f1a1714(void); u32 func0f1a176c(void); u32 func0f1a17e4(void); -u32 func0f1a1818(void); +s32 *func0f1a1818(void); u32 func0f1a1824(void); u32 func0f1a190c(void); u32 func0f1a1998(void);