From 02d8f3295d992d6d20f56226a6ef21434d600346 Mon Sep 17 00:00:00 2001 From: Jonathan Croskell <15827290+joncros@users.noreply.github.com> Date: Sun, 3 May 2020 14:05:01 -0600 Subject: [PATCH] Correctly show a colony's expected growth even when at "clean." If eco spending was set at "none" or "clean", the expected growth shown on the eco slider was always "+0" even if the population would grow naturally. --- src/rotp/model/colony/ColonyEcology.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rotp/model/colony/ColonyEcology.java b/src/rotp/model/colony/ColonyEcology.java index 5288821fb..66b587055 100644 --- a/src/rotp/model/colony/ColonyEcology.java +++ b/src/rotp/model/colony/ColonyEcology.java @@ -283,12 +283,13 @@ public String upcomingResult(){ if (newBC < cost) return text(wasteText); + expectedPopGrowth = (int) (workingPop+expGrowth) - (int) currentPop; + if (colony().allocation(categoryType()) == 0) return text(noneText); if (allocation() == cleanupAllocationNeeded()) return text(cleanupText); - expectedPopGrowth = (int) (workingPop+expGrowth) - (int) currentPop; newBC -= cost; // check for atmospheric terraforming cost = 0;