mirror of
https://github.com/zeldaret/ph
synced 2026-07-04 20:45:40 -04:00
Match ActorTypeIsOneOf
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user