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
+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;
}