From 67c840c42c51855de274635e766dc7526d810bec Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 24 Aug 2024 18:23:43 -0400 Subject: [PATCH] Added debug code --- src/engine/objects/Building.java | 2 ++ src/engine/workthreads/DestroyCityThread.java | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Building.java b/src/engine/objects/Building.java index 7d72ae20..29a2a449 100644 --- a/src/engine/objects/Building.java +++ b/src/engine/objects/Building.java @@ -602,6 +602,8 @@ public class Building extends AbstractWorldObject { return; } + city.destroyed.set(true); + // Must remove a bane before considering destruction of a TOL if (bane != null) { diff --git a/src/engine/workthreads/DestroyCityThread.java b/src/engine/workthreads/DestroyCityThread.java index 8f2ed1b3..0b64d38d 100644 --- a/src/engine/workthreads/DestroyCityThread.java +++ b/src/engine/workthreads/DestroyCityThread.java @@ -51,8 +51,6 @@ public class DestroyCityThread implements Runnable { Vector3fImmutable localCoords; ArrayList subGuildList; - city.destroyed.set(true); - // Member variable assignment cityZone = city.getParent();