From 7564386828eb0bc7835955cbeed7ff8ed767b699 Mon Sep 17 00:00:00 2001 From: plule <630159+plule@users.noreply.github.com> Date: Sat, 11 May 2024 09:08:22 +0200 Subject: [PATCH] Suspendmanager: fix over-suspending single tile --- plugins/suspendmanager.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/suspendmanager.cpp b/plugins/suspendmanager.cpp index a3ec22a235..623d689f50 100644 --- a/plugins/suspendmanager.cpp +++ b/plugins/suspendmanager.cpp @@ -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; }