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

FACTO-286: Missed squad dispatch refactor in control

This commit is contained in:
Aaron Veden 2023-04-04 23:08:18 -07:00
parent 1977391f94
commit ef510619fc
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84

View File

@ -818,8 +818,7 @@ local function onGroupFinishedGathering(event)
if squad then
if squad.settler then
if (Universe.builderCount <= Universe.AI_MAX_BUILDER_COUNT) then
compressSquad(squad)
squadDispatch(map, squad, event.tick)
squadDispatch(squad, event.tick)
else
group.destroy()
end
@ -831,8 +830,7 @@ local function onGroupFinishedGathering(event)
end
if (Universe.squadCount <= Universe.AI_MAX_SQUAD_COUNT) then
compressSquad(squad)
squadDispatch(map, squad, event.tick)
squadDispatch(squad, event.tick)
else
group.destroy()
end
@ -871,8 +869,7 @@ local function onGroupFinishedGathering(event)
else
Universe.squadCount = Universe.squadCount + 1
end
compressSquad(squad)
squadDispatch(map, squad, event.tick)
squadDispatch(squad, event.tick)
end
end