Skip to content

Commit 3c78d8e

Browse files
committed
Suspendmanager: fix over-suspending single tile
1 parent 5bda414 commit 3c78d8e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

plugins/suspendmanager.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,11 +556,14 @@ class SuspendManager {
556556
exit = impassiblePlan;
557557
}
558558

559+
559560
if (!exit) {
560561
// there is no exit at all
561-
// suspend the current construction job to leave the entire plan suspended
562+
if (isImpassable(building)) {
563+
// suspend the current construction job to leave the entire plan suspended
564+
suspensions[job->id] = Reason::DEADEND;
565+
}
562566
// and stop here
563-
suspensions[job->id] = Reason::DEADEND;
564567
return;
565568
}
566569

0 commit comments

Comments
 (0)