- Fixed bug in checklos
This commit is contained in:
Frank
2023-02-22 23:01:47 +01:00
parent 20a9857fcf
commit ffef3183c7
2 changed files with 3 additions and 10 deletions

View File

@@ -1683,7 +1683,7 @@ function OPSGROUP:HasLoS(Coordinate, Element, OffsetElement, OffsetCoordinate)
-- Check los for the given element.
if Element.unit and Element.unit:IsAlive() then
local vec3=Element.unit:GetVec3()
local los=checklos(Element)
local los=checklos(vec3)
return los
end
else
@@ -7091,6 +7091,8 @@ function OPSGROUP:SetLaserTarget(Target)
-- Set coordinate.
self.spot.Coordinate:UpdateFromVec3(self.spot.vec3)
self.spot.Coordinate:MarkToAll("Target Laser",ReadOnly,Text)
end
end