Merge pull request #720 from m0nkrel/master

Changed 2 logs from WARNING to INFO
This commit is contained in:
Joaquin 2022-09-24 15:37:29 -06:00 committed by GitHub
commit 115129464e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -725,7 +725,7 @@ namespace cheat::feature
void InteractiveMap::CompletePoint(PointData* pointData) void InteractiveMap::CompletePoint(PointData* pointData)
{ {
std::lock_guard _userDataLock(m_UserDataMutex); std::lock_guard _userDataLock(m_UserDataMutex);
LOG_WARNING("Complete point at %.0f.", game::EntityManager::instance().avatar()->distance(pointData->levelPosition)); LOG_INFO("Complete point at %.0f.", game::EntityManager::instance().avatar()->distance(pointData->levelPosition));
if (std::find_if(m_CompletedPoints.begin(), m_CompletedPoints.end(), [=](PointData* data) { return pointData->id == data->id; }) != std::end(m_CompletedPoints)) if (std::find_if(m_CompletedPoints.begin(), m_CompletedPoints.end(), [=](PointData* data) { return pointData->id == data->id; }) != std::end(m_CompletedPoints))
return; return;
@ -958,7 +958,7 @@ namespace cheat::feature
auto nearestPoint = FindNearestPoint(label, entity->levelPosition(), f_GatheredItemsDetectRange, sceneID); auto nearestPoint = FindNearestPoint(label, entity->levelPosition(), f_GatheredItemsDetectRange, sceneID);
if (nearestPoint == nullptr) if (nearestPoint == nullptr)
{ {
LOG_WARNING("Failed to find uncompleted point for this object."); LOG_INFO("Failed to find uncompleted point for this object.");
return; return;
} }
CompletePoint(nearestPoint); CompletePoint(nearestPoint);