Skip to content

Commit

Permalink
Suspendmanager: fix over-suspending single tile
Browse files Browse the repository at this point in the history
  • Loading branch information
plule authored and myk002 committed May 22, 2024
1 parent 45c4b30 commit 7564386
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/suspendmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,11 +556,14 @@ class SuspendManager {
exit = impassiblePlan;
}


if (!exit) {
// there is no exit at all
// suspend the current construction job to leave the entire plan suspended
if (isImpassable(building)) {
// suspend the current construction job to leave the entire plan suspended
suspensions[job->id] = Reason::DEADEND;
}
// and stop here
suspensions[job->id] = Reason::DEADEND;
return;
}

Expand Down

0 comments on commit 7564386

Please sign in to comment.