mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merged 'develop'.
# Conflicts: # Moose Development/Moose/Core/Cargo.lua
This commit is contained in:
@@ -224,6 +224,7 @@ function UNIT:ReSpawn( SpawnVec3, Heading )
|
||||
|
||||
for UnitTemplateID, UnitTemplateData in pairs( SpawnGroupTemplate.units ) do
|
||||
self:T( { UnitTemplateData.name, self:Name() } )
|
||||
SpawnGroupTemplate.units[UnitTemplateID].unitId = nil
|
||||
if UnitTemplateData.name == self:Name() then
|
||||
self:T("Adjusting")
|
||||
SpawnGroupTemplate.units[UnitTemplateID].alt = SpawnVec3.y
|
||||
@@ -264,6 +265,8 @@ function UNIT:ReSpawn( SpawnVec3, Heading )
|
||||
end
|
||||
end
|
||||
|
||||
SpawnGroupTemplate.groupId = nil
|
||||
|
||||
self:T( SpawnGroupTemplate )
|
||||
|
||||
_DATABASE:Spawn( SpawnGroupTemplate )
|
||||
@@ -383,7 +386,7 @@ function UNIT:GetGroup()
|
||||
local DCSUnit = self:GetDCSObject()
|
||||
|
||||
if DCSUnit then
|
||||
local UnitGroup = GROUP:Find( DCSUnit:getGroup() )
|
||||
local UnitGroup = GROUP:FindByName( DCSUnit:getGroup():getName() )
|
||||
return UnitGroup
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user