mirror of
https://github.com/zeldaret/ph
synced 2026-05-23 15:01:37 -04:00
Match ActorTypeIsOneOf
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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