Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adya committed Jul 30, 2024
1 parent b1bcc73 commit ef90683
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion SPID/include/DistributeManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Distribute
{
inline RE::BGSKeyword* processed{ nullptr };
inline RE::BGSKeyword* processedOutfit{ nullptr }; // TODO: If OutfitManager works out we won't need this keyword.

namespace detail
{
Expand Down
1 change: 0 additions & 1 deletion SPID/src/DeathDistribution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ namespace DeathDistribution
}

Distribute::LogDistribution(distributedForms, data);
// TODO: Log death distribution
}

RE::BSEventNotifyControl Manager::ProcessEvent(const RE::TESDeathEvent* a_event, RE::BSTEventSource<RE::TESDeathEvent>*)
Expand Down
9 changes: 3 additions & 6 deletions SPID/src/DistributeManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace Distribute
{
static bool thunk(RE::Character* a_this)
{
logger::info("ShouldBackgroundClone({})", *a_this);
//logger::info("ShouldBackgroundClone({})", *a_this);
if (const auto npc = a_this->GetActorBase()) {
detail::distribute_on_load(a_this, npc);
}
Expand All @@ -59,8 +59,8 @@ namespace Distribute
if (a_this->Is3DLoaded()) {
// TODO: Test whether there are some NPCs that are getting in this branch
// I haven't experienced issues with ShouldBackgroundClone hook.
logger::info("InitLoadGame({})", *a_this);
// detail::distribute_on_load(a_this, npc);
//logger::info("InitLoadGame({})", *a_this);
detail::distribute_on_load(a_this, npc);
}
}
}
Expand All @@ -86,9 +86,6 @@ namespace Distribute
if (processed = factory->Create(); processed) {
processed->formEditorID = "SPID_Processed";
}
if (processedOutfit = factory->Create(); processedOutfit) {
processedOutfit->formEditorID = "SPID_ProcessedOutfit";
}
}

if (Forms::GetTotalLeveledEntries() > 0) {
Expand Down

0 comments on commit ef90683

Please sign in to comment.