1
0
mirror of https://github.com/veden/Rampant.git synced 2025-02-05 13:14:51 +02:00

fixed vengence squad processing

This commit is contained in:
Aaron Veden 2021-11-24 18:31:28 -08:00
parent fb4a8c98a2
commit 6e06765d9f
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 6 additions and 5 deletions

View File

@ -2,6 +2,7 @@
Version: 1.1.5
Date: 23. 11. 2021
Bugfixes:
- Fixed vengence squads only processing half the expected chunks
---------------------------------------------------------------------------------------------------
Version: 1.1.4

View File

@ -463,20 +463,20 @@ end
function mapProcessor.processVengence(map)
local ss = map.vengenceQueue
local chunk = next(ss, map.deployVengenceIterator)
local chunk = map.deployVengenceIterator
if not chunk then
chunk = next(ss, nil)
end
if not chunk then
map.deployVengenceIterator = nil
if (tableSize(ss) == 0) then
map.vengenceQueue = {}
end
else
map.deployVengenceIterator = next(ss, chunk)
formVengenceSquad(map, chunk)
local nextChunk
nextChunk = next(ss, chunk)
ss[chunk] = nil
chunk = nextChunk
end
map.deployVengenceIterator = chunk
end
function mapProcessor.processNests(map, tick)