diff --git a/changelog.txt b/changelog.txt index 2616dc8..51d54a0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Version: 3.2.3 - Fixed occasionally compression number wouldn't appear on unit group - Fixed squad compression could take place when attacking - Fixed squad command timeout duration to account for 4 chunk pathing finding + - Fixed death pheromone could zero out a chunk for squad movement planning --------------------------------------------------------------------------------------------------- Version: 3.2.2 diff --git a/libs/ChunkPropertyUtils.lua b/libs/ChunkPropertyUtils.lua index 937425b..6ee00d4 100644 --- a/libs/ChunkPropertyUtils.lua +++ b/libs/ChunkPropertyUtils.lua @@ -368,8 +368,8 @@ function ChunkPropertyUtils.getCombinedDeathGeneratorRating(chunk) local amount = 1 + ((chunk.deathGenerator or 0) + (chunk.permanentDeathGenerator or 0)) if (amount > 1) then return 1 - elseif (amount < 0) then - return 0 + elseif (amount <= 0) then + return 0.001 else return amount end