mirror of
https://github.com/veden/Rampant.git
synced 2025-03-17 20:58:35 +02:00
FACTO-268: fixed vanilla unit groups not respecting initial peace
This commit is contained in:
parent
5783d46b4e
commit
1a398b7466
@ -64,6 +64,7 @@ Version: 3.2.0
|
||||
- Fixed /rampantSetAIState command could error if not provide correct parameters or didn't display a message if parameters were missing
|
||||
- Fixed the pheromone processing could skip the inner most chunks or the outer most chunks of a map
|
||||
- Fixed rallying units didn't use the base associated with the chunk for determining cost
|
||||
- Fixed that vanilla unit groups didn't respect initial peace time
|
||||
Optimizations:
|
||||
- Moved most constants out of global
|
||||
- Removed new enemy variations setting
|
||||
|
@ -724,6 +724,10 @@ local function onUnitGroupCreated(event)
|
||||
if group.is_script_driven then
|
||||
return
|
||||
end
|
||||
if not Universe.awake then
|
||||
group.destroy()
|
||||
return
|
||||
end
|
||||
local map = Universe.maps[surface.index]
|
||||
if not map then
|
||||
return
|
||||
@ -800,6 +804,9 @@ local function onGroupFinishedGathering(event)
|
||||
if not group.valid or (group.force.name ~= "enemy") then
|
||||
return
|
||||
end
|
||||
if not Universe.awake then
|
||||
group.destroy()
|
||||
end
|
||||
local map = Universe.maps[group.surface.index]
|
||||
if not map then
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user