1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

fixed active and raid nest processing

This commit is contained in:
Aaron Veden 2021-11-24 19:56:10 -08:00
parent 852a83df42
commit 879205d0d5
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 5 additions and 8 deletions

View File

@ -4,6 +4,7 @@ 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)
- Fixed active and raid nest processing only processing half the nests (Thank you Dimm2101)
---------------------------------------------------------------------------------------------------
Version: 1.1.4

View File

@ -497,20 +497,16 @@ end
local function processSpawners(map, tick, iterator, chunks)
local chunk = next(chunks, map[iterator])
local migrate = canMigrate(map)
local attack = canAttack(map, tick)
if not chunk then
map[iterator] = nil
return
else
map[iterator] = chunk
if chunk then
local migrate = canMigrate(map)
local attack = canAttack(map, tick)
if migrate then
formSettlers(map, chunk)
elseif attack then
formSquads(map, chunk, tick)
end
chunk = next(chunks, chunk)
end
map[iterator] = chunk
end
function mapProcessor.processSpawners(map, tick)