summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike <mikebuntu68@gmail.com>2024-05-11 14:20:09 -0400
committerMike <mikebuntu68@gmail.com>2024-07-20 11:37:18 -0400
commit481da76f4d47df864d460647e905f74684be26a1 (patch)
tree8e745fcdf836520a36f07237387fce3457035d65 /src
parent2c2723578779711c79e86ff267a19a449d3e883d (diff)
Match `ActorTypeIsOneOf`
Diffstat (limited to 'src')
-rw-r--r--src/00_Core/Actor/ActorManager.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/00_Core/Actor/ActorManager.cpp b/src/00_Core/Actor/ActorManager.cpp
index 66c431c4..9e4d2b88 100644
--- a/src/00_Core/Actor/ActorManager.cpp
+++ b/src/00_Core/Actor/ActorManager.cpp
@@ -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;
+}