Skip to content

Commit

Permalink
More formatting clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
jadebenn committed Nov 13, 2023
1 parent 997ea88 commit c06b5ef
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dGame/dComponents/PetComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "RenderComponent.h"
#include "eObjectBits.h"
#include "eGameMasterLevel.h"
#include "MissionComponent.h"
#include "eMissionState.h"

std::unordered_map<LOT, PetComponent::PetPuzzleData> PetComponent::buildCache{};
Expand Down Expand Up @@ -442,10 +441,10 @@ void PetComponent::Update(float deltaTime) {
}

auto* missionComponent = owner->GetComponent<MissionComponent>();
if (missionComponent == nullptr) return;
if (!missionComponent) return;

// Determine if "Lost Tags" has been completed and digging has been unlocked
const bool digUnlocked = (missionComponent->GetMissionState(842) == eMissionState::COMPLETE);
// Determine if the "Lost Tags" mission has been completed and digging has been unlocked
const bool digUnlocked = missionComponent->GetMissionState(842) == eMissionState::COMPLETE;

Entity* closestTresure = PetDigServer::GetClosestTresure(position);

Expand Down

0 comments on commit c06b5ef

Please sign in to comment.