diff options
| author | AlexApps99 <alex.apps99@gmail.com> | 2021-07-26 21:58:51 +1200 |
|---|---|---|
| committer | AlexApps99 <alex.apps99@gmail.com> | 2021-07-26 23:05:19 +1200 |
| commit | 42807160cfb33af9f3cf2fa6b0ba98f232208cdb (patch) | |
| tree | 95b1b16a3f4cf7d0ab51e90b3d73e53f74ba7f2b /src/KingSystem/ActorSystem/actActorCreator.cpp | |
| parent | 88bcc9eec1481b47361dc717c83e4953e8929a2b (diff) | |
Add #ifdef declarations for NON_MATCHING code
Diffstat (limited to 'src/KingSystem/ActorSystem/actActorCreator.cpp')
| -rw-r--r-- | src/KingSystem/ActorSystem/actActorCreator.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/KingSystem/ActorSystem/actActorCreator.cpp b/src/KingSystem/ActorSystem/actActorCreator.cpp index e3203b5e..fc5a54c0 100644 --- a/src/KingSystem/ActorSystem/actActorCreator.cpp +++ b/src/KingSystem/ActorSystem/actActorCreator.cpp @@ -166,7 +166,8 @@ bool ActorCreator::requestCreateActor(const char* name, sead::Heap* heap, BasePr return requestCreateActor_(actor_class, name, heap, map_object, handle, task_lane_id, params); } -// NON_MATCHING: OffsetList iteration +// OffsetList iteration +#ifdef NON_MATCHING void ActorCreator::enableDistanceUnloadChecks() { const auto lock = sead::makeScopedLock(mActorListCS); for (auto it = mActorList.robustBegin(); it != mActorList.robustEnd(); ++it) { @@ -176,6 +177,7 @@ void ActorCreator::enableDistanceUnloadChecks() { } mEnableDistanceChecks = true; } +#endif void ActorCreator::eraseActor(Actor* actor) { const auto lock = sead::makeScopedLock(mActorListCS); |
