Match ActorTypeIsOneOf

This commit is contained in:
Mike
2024-05-11 14:20:09 -04:00
parent 2c27235787
commit 481da76f4d
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ public:
s32 func_ov00_020c3bb0(unk32 param1, s32 *param2);
void func_ov00_020c3ce8(unk32 param1, unk32 param2);
void Actor_vfunc_28();
static bool ActorTypeIsOneOf(u32 type, ActorTypeId *types);
static bool ActorTypeIsOneOf(char *type,char **types);
};
extern ActorManager *gActorManager;
+17
View File
@@ -218,3 +218,20 @@ void ActorManager::Actor_vfunc_28() {
pActor = pActor + 1;
}
}
char nullStr[] = "LLUN";
ARM bool ActorManager::ActorTypeIsOneOf(char *type, char **types) {
int i;
bool found = false;
for (i = 0; *types != nullStr; i++) {
if (type == *types) {
found = true;
break;
}
types += 1;
}
return found;
}