diff --git a/rts/Sim/Path/QTPFS/PathManager.cpp b/rts/Sim/Path/QTPFS/PathManager.cpp index e2b87fab41..b6a6a02469 100644 --- a/rts/Sim/Path/QTPFS/PathManager.cpp +++ b/rts/Sim/Path/QTPFS/PathManager.cpp @@ -820,7 +820,7 @@ void QTPFS::PathManager::ReadyQueuedSearches() { { auto pathView = registry.view(); - // Any requests that cannot be processed should be removed. We can't do that with ther r* + // Any requests that cannot be processed should be removed. We can't do that with the r* // iterators becasue that will break them. std::for_each(pathView.begin(), pathView.end(), [this](entt::entity entity){ if (!registry.all_of(entity)) @@ -1221,7 +1221,7 @@ unsigned int QTPFS::PathManager::RequeueSearch( assert( oldPath->GetSourcePoint().x != 0.f || oldPath->GetSourcePoint().z != 0.f ); - // LOG("%s: [%d] (%f,%f) -> (%f,%f)", __func__, oldPath->GetPathType() + // LOG("%s: [p%x:s%x] (%f,%f) -> (%f,%f)", __func__, oldPath->GetID(), entt::to_integral(searchEntity) // , pos.x, pos.z, targetPoint.x, targetPoint.z); return (oldPath->GetID()); diff --git a/rts/Sim/Path/QTPFS/PathSearch.cpp b/rts/Sim/Path/QTPFS/PathSearch.cpp index a7aa30dada..fe2aac1d63 100644 --- a/rts/Sim/Path/QTPFS/PathSearch.cpp +++ b/rts/Sim/Path/QTPFS/PathSearch.cpp @@ -547,6 +547,7 @@ bool QTPFS::PathSearch::ExecutePathSearch() { if (haveFullPath) { if (!isFullSearch) { if (fwdStepIndex > bwdStepIndex){ + haveFullPath = havePartPath = false; rejectPartialSearch = true; // LOG("%s: rejecting partial path 1 (search %x)", __func__, this->GetID()); return false; @@ -555,6 +556,7 @@ bool QTPFS::PathSearch::ExecutePathSearch() { } else { // if the partial path could not connect the reverse path, then we need to reject. if (fwdPathConnected && !bwdPathConnected) { + haveFullPath = havePartPath = false; rejectPartialSearch = true; // LOG("%s: rejecting partial path 2 (search %x)", __func__, this->GetID()); return false;