|
|
@ -184,8 +184,9 @@ namespace ArtifactTracker |
|
|
|
void OnCellEnter(RE::FormID a_formID) |
|
|
|
void OnCellEnter(RE::FormID a_formID) |
|
|
|
{ |
|
|
|
{ |
|
|
|
RE::TESObjectCELL* cell = RE::TESForm::LookupByID<RE::TESObjectCELL>(a_formID); |
|
|
|
RE::TESObjectCELL* cell = RE::TESForm::LookupByID<RE::TESObjectCELL>(a_formID); |
|
|
|
|
|
|
|
RE::BGSLocation* location = cell ? cell->GetLocation() : nullptr; |
|
|
|
|
|
|
|
|
|
|
|
if (!cell || !cell->IsInteriorCell()) { |
|
|
|
if (!cell || !cell->IsInteriorCell() || !location || !location->HasKeyword(g_homeKeyword)) { |
|
|
|
if (IsHome()) { |
|
|
|
if (IsHome()) { |
|
|
|
RE::ScriptEventSourceHolder::GetSingleton()->RemoveEventSink<RE::TESCellFullyLoadedEvent>(EventListener::GetSingleton()); |
|
|
|
RE::ScriptEventSourceHolder::GetSingleton()->RemoveEventSink<RE::TESCellFullyLoadedEvent>(EventListener::GetSingleton()); |
|
|
|
ToggleHomeMode(nullptr); |
|
|
|
ToggleHomeMode(nullptr); |
|
|
|