Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lostsquirrel1 committed Jun 16, 2024
1 parent 92ff543 commit 3e59ff4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions rts/Sim/Path/QTPFS/PathCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit 3e59ff4

Please sign in to comment.