Skip to content

Commit

Permalink
Switch path search points to clamp in bounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcushutchings committed Jan 3, 2024
1 parent 192c9dd commit d48ed7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rts/Sim/Path/QTPFS/PathManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1127,8 +1127,8 @@ unsigned int QTPFS::PathManager::QueueSearch(
newPath->AllocPoints(2);
newPath->AllocNodes(0);
newPath->SetOwner(object);
newPath->SetSourcePoint(sourcePoint.cClampInMap());
newPath->SetTargetPoint(targetPoint.cClampInMap());
newPath->SetSourcePoint(sourcePoint.cClampInBounds());
newPath->SetTargetPoint(targetPoint.cClampInBounds());
newPath->SetPathType(moveDef->pathType);

registry.emplace<PathIsTemp>(pathEntity);
Expand Down

0 comments on commit d48ed7f

Please sign in to comment.