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:
parent
fb4a8c98a2
commit
6e06765d9f
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user