Decompile chrHasHiddenFlag00000002

This commit is contained in:
Ryan Dwyer 2019-11-02 17:12:47 +10:00
parent 55c3af7e5a
commit eedb2aad77
2 changed files with 5 additions and 8 deletions

View File

@ -1555,7 +1555,7 @@ bool aiIfAlarmInactive(void)
*/
bool ai003c(void)
{
if (func0f049f84(g_Vars.chrdata)) {
if (chrHasHiddenFlag00000002(g_Vars.chrdata)) {
u8 *cmd = g_Vars.ailist + g_Vars.aioffset;
g_Vars.aioffset = chraiGoToLabel(g_Vars.ailist, g_Vars.aioffset, cmd[2]);
} else {

View File

@ -84694,13 +84694,10 @@ bool chrHasStageFlag(struct chrdata *chr, u32 flag)
return (g_StageFlags & flag) != 0;
}
GLOBAL_ASM(
glabel func0f049f84
/* f049f84: 8c820014 */ lw $v0,0x14($a0)
/* f049f88: 304e0002 */ andi $t6,$v0,0x2
/* f049f8c: 03e00008 */ jr $ra
/* f049f90: 000e102b */ sltu $v0,$zero,$t6
);
bool chrHasHiddenFlag00000002(struct chrdata *chr)
{
return (chr->hidden & 0x00000002) != 0;
}
GLOBAL_ASM(
glabel func0f049f94