diff options
| author | Léo Lam <leo@leolam.fr> | 2022-02-27 12:48:28 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2022-02-27 12:50:52 +0100 |
| commit | df36d656650198b3cbf140e2982752a95b3f2c6d (patch) | |
| tree | 1af53905980b13aa03ab2f78dd548407370eb98c /src/KingSystem/ActorSystem/actActorCreator.cpp | |
| parent | a5641860025aed373da045ef1ac43a6487529932 (diff) | |
Revert "Add #ifdef declarations for NON_MATCHING code"
This reverts commit 42807160cfb33af9f3cf2fa6b0ba98f232208cdb.
It makes searching for NON_MATCHING comment descriptions much less
convenient in most text editors or IDEs, and we want the function
CSV to be the single source of truth for function statuses. Having
a function marked as matching but not built because of a stray #ifdef
would be bad.
Diffstat (limited to 'src/KingSystem/ActorSystem/actActorCreator.cpp')
| -rw-r--r-- | src/KingSystem/ActorSystem/actActorCreator.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/KingSystem/ActorSystem/actActorCreator.cpp b/src/KingSystem/ActorSystem/actActorCreator.cpp index fc5a54c0..e3203b5e 100644 --- a/src/KingSystem/ActorSystem/actActorCreator.cpp +++ b/src/KingSystem/ActorSystem/actActorCreator.cpp @@ -166,8 +166,7 @@ bool ActorCreator::requestCreateActor(const char* name, sead::Heap* heap, BasePr return requestCreateActor_(actor_class, name, heap, map_object, handle, task_lane_id, params); } -// OffsetList iteration -#ifdef NON_MATCHING +// NON_MATCHING: OffsetList iteration void ActorCreator::enableDistanceUnloadChecks() { const auto lock = sead::makeScopedLock(mActorListCS); for (auto it = mActorList.robustBegin(); it != mActorList.robustEnd(); ++it) { @@ -177,7 +176,6 @@ void ActorCreator::enableDistanceUnloadChecks() { } mEnableDistanceChecks = true; } -#endif void ActorCreator::eraseActor(Actor* actor) { const auto lock = sead::makeScopedLock(mActorListCS); |
