Skip to content

Commit 9e4b088

Browse files
committed
Block for pathing requests only
1 parent c996ee7 commit 9e4b088

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Entities/Scene.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3125,7 +3125,8 @@ void Scene::Update()
31253125

31263126
if (m_NavigatableAreasUpToDate == false) {
31273127
// Need to block until all current pathfinding requests are finished. Ugh, if only we had a better way (interrupt/cancel a path request to start a new one?)
3128-
g_ThreadMan.GetBackgroundThreadPool().wait_for_tasks();
3128+
// TODO: Make the PathRequest struct more capable and maybe we can delay starting or cancel mid-request?
3129+
BlockUntilAllPathingRequestsComplete();
31293130

31303131
m_NavigatableAreasUpToDate = true;
31313132
for (int team = Activity::Teams::NoTeam; team < Activity::Teams::MaxTeamCount; ++team) {

0 commit comments

Comments
 (0)