|
|
|
@ -125,6 +125,13 @@ public class DestroyCityThread implements Runnable {
@@ -125,6 +125,13 @@ public class DestroyCityThread implements Runnable {
|
|
|
|
|
|
|
|
|
|
cityBuilding.setProtectionState(mbEnums.ProtectionState.NONE); |
|
|
|
|
|
|
|
|
|
// Remove warehouse entry if one exists.
|
|
|
|
|
|
|
|
|
|
if (cityBuilding.getBlueprint().getBuildingGroup() == mbEnums.BuildingGroup.WAREHOUSE) { |
|
|
|
|
DbManager.WarehouseQueries.DELETE_WAREHOUSE(city.warehouse); |
|
|
|
|
city.warehouse = null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Destroy all remaining city assets
|
|
|
|
|
|
|
|
|
|
if ((cityBuilding.getBlueprint().getBuildingGroup() == mbEnums.BuildingGroup.BARRACK) |
|
|
|
|