From 852a83df42c2aaf893994f7227b4bd2800c81352 Mon Sep 17 00:00:00 2001 From: Aaron Veden Date: Wed, 24 Nov 2021 18:43:24 -0800 Subject: [PATCH] fixed nest processing --- changelog.txt | 3 ++- libs/MapProcessor.lua | 15 ++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/changelog.txt b/changelog.txt index afd5238..8f479e2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Version: 1.1.5 Date: 23. 11. 2021 Bugfixes: - Fixed vengence squads only processing half the expected chunks + - Fixed nest processing only processing half the nests (Thank you Dimm2101) --------------------------------------------------------------------------------------------------- Version: 1.1.4 @@ -12,7 +13,7 @@ Date: 25. 07. 2021 - Added mod settings for debug values around faction mutation Bugfixes: - Fixed factions being added to damage table incorrectly - + --------------------------------------------------------------------------------------------------- Version: 1.1.3 Date: 24. 07. 2021 diff --git a/libs/MapProcessor.lua b/libs/MapProcessor.lua index 55d0fc0..dd174d8 100644 --- a/libs/MapProcessor.lua +++ b/libs/MapProcessor.lua @@ -480,26 +480,19 @@ function mapProcessor.processVengence(map) end function mapProcessor.processNests(map, tick) - local bases = map.chunkToBase - local chunks = map.chunkToNests - local chunk = next(chunks, map.processNestIterator) - if not chunk then - map.processNestIterator = nil - return - else + local chunk = next(map.chunkToNests, map.processNestIterator) + map.processNestIterator = chunk + if chunk then processNestActiveness(map, chunk) queueNestSpawners(map, chunk, tick) if map.universe.NEW_ENEMIES then - local base = bases[chunk] + local base = map.chunkToBase[chunk] if base and ((tick - base.tick) > BASE_PROCESS_INTERVAL) then processBase(chunk, map, tick, base) end end - - chunk = next(chunks, chunk) end - map.processNestIterator = chunk end local function processSpawners(map, tick, iterator, chunks)