From 3e59ff421277886a81a42be66ac0590575fb8090 Mon Sep 17 00:00:00 2001 From: lostsquirrel Date: Sun, 16 Jun 2024 23:09:01 +0100 Subject: [PATCH] clean up --- rts/Sim/Path/QTPFS/PathCache.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rts/Sim/Path/QTPFS/PathCache.cpp b/rts/Sim/Path/QTPFS/PathCache.cpp index 24151c50bb..5c88b1b358 100644 --- a/rts/Sim/Path/QTPFS/PathCache.cpp +++ b/rts/Sim/Path/QTPFS/PathCache.cpp @@ -125,15 +125,11 @@ bool QTPFS::PathCache::MarkDeadPaths(const SRectangle& r, const NodeLayer& nodeL if (path->IsSynced() == false) { continue; } if (path->GetPathType() != pathType) { continue; } - // auto-repath should already be triggered. - TODO remove this. - // if (path->GetRepathTriggerIndex() != 0 && path->GetNextPointIndex() > path->GetRepathTriggerIndex()) { - // continue; - // } // LOG("%s: %x is processing", __func__, (int)entity); const float3& pathMins = path->GetBoundingBoxMins(); - const float3& pathMaxs = path->GetBoundingBoxMaxs(); // why is node wrong size? + const float3& pathMaxs = path->GetBoundingBoxMaxs(); // if rectangle does not overlap bounding-box, skip this path if ((r.x2 * SQUARE_SIZE) < pathMins.x) { continue; }