1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-04 00:52:33 +00:00
This commit is contained in:
Hellss
2022-08-05 00:09:44 +03:00
parent f131d17eaf
commit 7f98f4b7e2

View File

@@ -555,7 +555,7 @@ function ENT:Think()
self.WindowEnd = self.WindowStart
elseif self.WindowEnd < self:PoolSize() then
local growthDelta = math.max(0,(target-self:PopulationCount())*0.005)
if growthDelta < 1.0 then -- Accumulate fractional rate
if growthDelta > 0.0 and growthDelta < 1.0 then -- Accumulate fractional rate
self.GrowthAccumulation = (self.GrowthAccumulation or 0) + growthDelta
if self.GrowthAccumulation > 1.0 then
growthDelta = 1