summaryrefslogtreecommitdiff
path: root/mm/2s2h/Rando/ActorBehavior/ActorBehavior.cpp
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2024-10-25 08:25:21 -0500
committerGarrett Cox <garrettjcox@gmail.com>2024-10-25 09:25:35 -0500
commit89e3bcac8ec64066a9cc7b042a46b7724fbe92fe (patch)
treeef40b0a65d41006c4d3fba592620e840189598bc /mm/2s2h/Rando/ActorBehavior/ActorBehavior.cpp
parentf7dde41c6da8a35cfd9fefc9fc0f4239dee1031e (diff)
COND_HOOK macros
Diffstat (limited to 'mm/2s2h/Rando/ActorBehavior/ActorBehavior.cpp')
-rw-r--r--mm/2s2h/Rando/ActorBehavior/ActorBehavior.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/mm/2s2h/Rando/ActorBehavior/ActorBehavior.cpp b/mm/2s2h/Rando/ActorBehavior/ActorBehavior.cpp
index 3b8bf9ee3..8388a702e 100644
--- a/mm/2s2h/Rando/ActorBehavior/ActorBehavior.cpp
+++ b/mm/2s2h/Rando/ActorBehavior/ActorBehavior.cpp
@@ -38,16 +38,5 @@ void Rando::ActorBehavior::OnFileLoad() {
Rando::ActorBehavior::InitObjMoonStoneBehavior();
Rando::ActorBehavior::InitObjTsuboBehavior();
- static uint32_t onVanillaBehaviorHook = 0;
-
- GameInteractor::Instance->UnregisterGameHook<GameInteractor::ShouldVanillaBehavior>(onVanillaBehaviorHook);
-
- onVanillaBehaviorHook = 0;
-
- if (!IS_RANDO) {
- return;
- }
-
- onVanillaBehaviorHook =
- GameInteractor::Instance->RegisterGameHook<GameInteractor::ShouldVanillaBehavior>(MiscVanillaBehaviorHandler);
+ COND_HOOK(ShouldVanillaBehavior, IS_RANDO, MiscVanillaBehaviorHandler);
}